﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace AnthStat
{
    /// <summary>
    /// Class containing common methods for statistics generation. Includes z-scores, percentiles, 
    /// percent of median, and flags for the CDC 2000, WHO 2006-7, and NCHS 1978 reference sets.
    /// </summary>
    public static class NutriDataCalc
    {
        /// <summary>
        /// Takes a z-score input and returns a percentile
        /// </summary>
        /// <param name="Z">The z-score</param>
        /// <returns>Percentile</returns>        
        public static double GetPercentile(double Z)
        {
            // First, convert the Z to
            // type double. 
            double z = Z;
            double y = 0;
            double alnorm = 0;

            // Algorithm AS66 Applied Statistics (1973) vol22 no.3
            // Computes P(Z<z)

            //When z=1.96, the values returned are .975 (upper=false) or .025(upper=true) (roughly).
            //z = parseFloat(z);            
            bool upper = false;

            double ltone = 7.0;
            double utzero = 18.66;
            double con = 1.28;
            double a1 = 0.398942280444;
            double a2 = 0.399903438504;
            double a3 = 5.75885480458;
            double a4 = 29.8213557808;
            double a5 = 2.62433121679;
            double a6 = 48.6959930692;
            double a7 = 5.92885724438;
            double b1 = 0.398942280385;
            double b2 = 3.8052 * Math.Exp(-8.0);
            double b3 = 1.00000615302;
            double b4 = 3.98064794e-4;
            double b5 = 1.986153813664;
            double b6 = 0.151679116635;
            double b7 = 5.29330324926;
            double b8 = 4.8385912808;
            double b9 = 15.1508972451;
            double b10 = 0.742380924027;
            double b11 = 30.789933034;
            double b12 = 3.99019417011;

            if (z < 0)
            {
                upper = !upper;
                z = -z;
            }
            if (z <= ltone || upper && z <= utzero)
            {
                y = 0.5 * z * z;
                if (z > con)
                {
                    alnorm = b1 * Math.Exp(-y) / (z - b2 + b3 / (z + b4 + b5 / (z - b6 + b7 / (z + b8 - b9 / (z + b10 + b11 / (z + b12))))));
                }
                else
                {
                    alnorm = 0.5 - z * (a1 - a2 * y / (y + a3 - a4 / (y + a5 + a6 / (y + a7))));
                }
            }
            else
            {
                alnorm = 0;
            }
            if (!upper) alnorm = 1 - alnorm;

            // After all that math is done, take our decimal and return it to the calling function
            return alnorm * 100;

        } // end GetPercentile

        /// <summary>
        /// Takes raw MUAC input and returns Z-for-height. This function was
        /// derived from information found in Bull. WHO, 1997, 75: 333-342.
        /// </summary>
        /// <param name="muac">double; raw measurement of arm circumference in cm</param>
        /// <param name="height">double; patient's height in cm</param>
        /// <param name="gender">short; patient's gender (1 = male, 2 = female)</param>
        /// <returns>double (z-score)</returns> 
        public static double GetZ_HeightMUAC(double muac, double height, short gender)
        {
            double median = 0.0;
            double sd = 0.0;

            // Citation for formula: Bull. WHO, 1997, 75: 333-342.

            // Male
            if (gender == 1)
            {
                median = -127.85283 + 7.01912 * (height) - 0.13765 * Math.Pow(height, 2) + 1.34691E-03 * Math.Pow(height, 3) - 6.55082E-06 * Math.Pow(height, 4) + 1.27334E-08 * Math.Pow(height, 5);
            }
            // Female
            else
            {
                median = -100.76669 + 5.11495 * (height) - 0.09007 * Math.Pow(height, 2) + 7.94219E-04 * Math.Pow(height, 3) - 3.51033E-06 * Math.Pow(height, 4) + 6.33942E-09 * Math.Pow(height, 5);
            }

            if (muac < median)
            {
                sd = -5.64795 + 0.21659 * (height) - 2.30396E-03 * Math.Pow(height, 2) + 8.18966E-06 * Math.Pow(height, 3);
            }
            else
            {
                sd = 2.05049 - 0.01880 * (height) - 1.38497E-05 * Math.Pow(height, 2) + 1.51434E-06 * Math.Pow(height, 3);
            }

            double htz = (muac - median) / sd;

            return htz;

        } // end GetZScoreHeightMUAC

        /// <summary>
        /// Takes raw MUAC input and returns Z-for-age. This function was
        /// derived from information found in Bull. WHO, 1997, 75: 11-18.
        /// </summary>
        /// <param name="muac">double; raw measurement of arm circumference in cm</param>
        /// <param name="age">double; patient's age in months</param>
        /// <param name="gender">short; patient's gender (1 = male, 2 = female)</param>
        /// <returns>double (z-score)</returns>         
        public static double GetZ_AgeMUAC(double muac, double age, short gender)
        {
            double mean = 0.0;
            double sd = 0.0;

            // Citation for formula: Bull. WHO, 1997, 75: 11-18.

            // Male
            if (gender == 1)
            {
                mean = 13.610 + ((0.29288) * Math.Pow(age, 1)) - ((0.013705) * Math.Pow(age, 2)) + ((3.3561 / 10000) * Math.Pow(age, 3)) - ((3.8818 / 1000000) * Math.Pow(age, 4)) + ((1.7218 / 100000000) * Math.Pow(age, 5));
            }
            // Female
            else
            {
                mean = 11.534 + ((0.51060) * Math.Pow(age, 1)) - ((0.023408) * Math.Pow(age, 2)) + ((5.4240 / 10000) * Math.Pow(age, 3)) - ((5.9797 / 1000000) * Math.Pow(age, 4)) + ((2.5431 / 100000000) * Math.Pow(age, 5));
            }

            sd = (1.05661 + (0.02073 * age)) - ((5.0945 / 10000) * Math.Pow(age, 2)) + ((5.27677 / 1000000) * Math.Pow(age, 3));

            double agez = (muac - mean) / sd;

            return agez;

        } // end GetZScoreAgeMUAC        

        #region CDC Reference Data
        public static double[,] CDCBMI = {
{1,24,-2.01118107,16.57502768,0.080592465 },
{1,24.5,-1.982373595,16.54777487,0.080127429 },
{1,25.5,-1.924100169,16.49442763,0.079233994 },
{1,26.5,-1.86549793,16.44259552,0.078389356 },
{1,27.5,-1.807261899,16.3922434,0.077593501 },
{1,28.5,-1.750118905,16.34333654,0.076846462 },
{1,29.5,-1.69481584,16.29584097,0.076148308 },
{1,30.5,-1.642106779,16.24972371,0.075499126 },
{1,31.5,-1.592744414,16.20495268,0.074898994 },
{1,32.5,-1.547442391,16.16149871,0.074347997 },
{1,33.5,-1.506902601,16.11933258,0.073846139 },
{1,34.5,-1.471770047,16.07842758,0.07339337 },
{1,35.5,-1.442628957,16.03875896,0.072989551 },
{1,36.5,-1.419991255,16.00030401,0.072634432 },
{1,37.5,-1.404277619,15.96304277,0.072327649 },
{1,38.5,-1.39586317,15.92695418,0.07206864 },
{1,39.5,-1.394935252,15.89202582,0.071856805 },
{1,40.5,-1.401671596,15.85824093,0.071691278 },
{1,41.5,-1.416100312,15.82558822,0.071571093 },
{1,42.5,-1.438164899,15.79405728,0.071495113 },
{1,43.5,-1.467669032,15.76364255,0.071462106 },
{1,44.5,-1.504376347,15.73433668,0.071470646 },
{1,45.5,-1.547942838,15.70613566,0.071519218 },
{1,46.5,-1.597896397,15.67904062,0.071606277 },
{1,47.5,-1.653732283,15.65305192,0.071730167 },
{1,48.5,-1.714869347,15.62817269,0.071889214 },
{1,49.5,-1.780673181,15.604408,0.072081737 },
{1,50.5,-1.850468473,15.58176458,0.072306081 },
{1,51.5,-1.923551865,15.56025067,0.072560637 },
{1,52.5,-1.999220429,15.5398746,0.07284384 },
{1,53.5,-2.076707178,15.52064993,0.073154324 },
{1,54.5,-2.155348017,15.50258427,0.073490667 },
{1,55.5,-2.234438552,15.48568973,0.073851672 },
{1,56.5,-2.313321723,15.46997718,0.074236235 },
{1,57.5,-2.391381273,15.45545692,0.074643374 },
{1,58.5,-2.468032491,15.44213961,0.075072264 },
{1,59.5,-2.542781541,15.43003207,0.075522104 },
{1,60.5,-2.61516595,15.41914163,0.07599225 },
{1,61.5,-2.684789516,15.40947356,0.076482128 },
{1,62.5,-2.751316949,15.40103139,0.076991232 },
{1,63.5,-2.81445945,15.39381785,0.077519149 },
{1,64.5,-2.87402476,15.38783094,0.07806539 },
{1,65.5,-2.92984048,15.38306945,0.078629592 },
{1,66.5,-2.981796828,15.37952958,0.079211369 },
{1,67.5,-3.029831343,15.37720582,0.079810334 },
{1,68.5,-3.073924224,15.37609107,0.080426086 },
{1,69.5,-3.114093476,15.37617677,0.081058206 },
{1,70.5,-3.15039004,15.37745304,0.081706249 },
{1,71.5,-3.182893018,15.37990886,0.082369741 },
{1,72.5,-3.21170511,15.38353217,0.083048178 },
{1,73.5,-3.23694834,15.38831005,0.083741021 },
{1,74.5,-3.25876011,15.39422883,0.0844477 },
{1,75.5,-3.277281546,15.40127496,0.085167651 },
{1,76.5,-3.292683774,15.40943252,0.085900184 },
{1,77.5,-3.305124073,15.41868691,0.086644667 },
{1,78.5,-3.314768951,15.42902273,0.087400421 },
{1,79.5,-3.321785992,15.44042439,0.088166744 },
{1,80.5,-3.326345795,15.45287581,0.088942897 },
{1,81.5,-3.328602731,15.46636218,0.089728202 },
{1,82.5,-3.328725277,15.48086704,0.090521875 },
{1,83.5,-3.32687018,15.49637465,0.091323162 },
{1,84.5,-3.323188896,15.51286936,0.092131305 },
{1,85.5,-3.317827016,15.53033563,0.092945544 },
{1,86.5,-3.310923871,15.54875807,0.093765118 },
{1,87.5,-3.302612272,15.56812143,0.09458927 },
{1,88.5,-3.293018361,15.58841065,0.095417247 },
{1,89.5,-3.282260813,15.60961101,0.096248301 },
{1,90.5,-3.270454609,15.63170735,0.097081694 },
{1,91.5,-3.257703616,15.65468563,0.097916698 },
{1,92.5,-3.244108214,15.67853139,0.098752593 },
{1,93.5,-3.229761713,15.70323052,0.099588675 },
{1,94.5,-3.214751287,15.72876911,0.100424251 },
{1,95.5,-3.199158184,15.75513347,0.101258643 },
{1,96.5,-3.18305795,15.78231007,0.102091189 },
{1,97.5,-3.166520664,15.8102856,0.102921245 },
{1,98.5,-3.1496103,15.83904708,0.103748189 },
{1,99.5,-3.132389637,15.86858123,0.104571386 },
{1,100.5,-3.114911153,15.89887562,0.105390269 },
{1,101.5,-3.097226399,15.92991765,0.106204258 },
{1,102.5,-3.079383079,15.96169481,0.107012788 },
{1,103.5,-3.061423765,15.99419489,0.107815327 },
{1,104.5,-3.043386071,16.02740607,0.108611374 },
{1,105.5,-3.025310003,16.0613159,0.109400388 },
{1,106.5,-3.007225737,16.09591292,0.110181915 },
{1,107.5,-2.989164598,16.13118532,0.110955478 },
{1,108.5,-2.971148225,16.16712234,0.111720691 },
{1,109.5,-2.953208047,16.20371168,0.112477059 },
{1,110.5,-2.935363951,16.24094239,0.1132242 },
{1,111.5,-2.917635157,16.27880346,0.113961734 },
{1,112.5,-2.900039803,16.31728385,0.114689291 },
{1,113.5,-2.882593796,16.35637267,0.115406523 },
{1,114.5,-2.865311266,16.39605916,0.116113097 },
{1,115.5,-2.848204697,16.43633265,0.116808702 },
{1,116.5,-2.831285052,16.47718256,0.117493042 },
{1,117.5,-2.81456189,16.51859843,0.11816584 },
{1,118.5,-2.79804347,16.56056987,0.118826835 },
{1,119.5,-2.781736856,16.60308661,0.119475785 },
{1,120.5,-2.765648008,16.64613844,0.120112464 },
{1,121.5,-2.749782197,16.68971518,0.120736656 },
{1,122.5,-2.734142443,16.73380695,0.121348181 },
{1,123.5,-2.718732873,16.77840363,0.121946849 },
{1,124.5,-2.703555506,16.82349538,0.122532501 },
{1,125.5,-2.688611957,16.86907238,0.123104991 },
{1,126.5,-2.673903164,16.91512487,0.123664186 },
{1,127.5,-2.659429443,16.96164317,0.124209969 },
{1,128.5,-2.645190534,17.00861766,0.124742239 },
{1,129.5,-2.631185649,17.05603879,0.125260905 },
{1,130.5,-2.617413511,17.10389705,0.125765895 },
{1,131.5,-2.603872392,17.15218302,0.126257147 },
{1,132.5,-2.590560148,17.20088732,0.126734613 },
{1,133.5,-2.577474253,17.25000062,0.12719826 },
{1,134.5,-2.564611831,17.29951367,0.127648067 },
{1,135.5,-2.551969684,17.34941726,0.128084023 },
{1,136.5,-2.539539972,17.39970308,0.128506192 },
{1,137.5,-2.527325681,17.45036072,0.128914497 },
{1,138.5,-2.515320235,17.50138161,0.129309001 },
{1,139.5,-2.503519447,17.55275674,0.129689741 },
{1,140.5,-2.491918934,17.60447714,0.130056765 },
{1,141.5,-2.480514136,17.6565339,0.130410133 },
{1,142.5,-2.469300331,17.70891811,0.130749913 },
{1,143.5,-2.458272656,17.76162094,0.131076187 },
{1,144.5,-2.447426113,17.81463359,0.131389042 },
{1,145.5,-2.436755595,17.86794729,0.131688579 },
{1,146.5,-2.426255887,17.92155332,0.131974905 },
{1,147.5,-2.415921689,17.97544299,0.132248138 },
{1,148.5,-2.405747619,18.02960765,0.132508403 },
{1,149.5,-2.395728233,18.08403868,0.132755834 },
{1,150.5,-2.385858029,18.1387275,0.132990575 },
{1,151.5,-2.376131459,18.19366555,0.133212776 },
{1,152.5,-2.366542942,18.24884431,0.133422595 },
{1,153.5,-2.357086871,18.3042553,0.133620197 },
{1,154.5,-2.347757625,18.35989003,0.133805756 },
{1,155.5,-2.338549576,18.41574009,0.133979452 },
{1,156.5,-2.3294571,18.47179706,0.13414147 },
{1,157.5,-2.320474586,18.52805255,0.134292005 },
{1,158.5,-2.311596446,18.5844982,0.134431256 },
{1,159.5,-2.302817124,18.64112567,0.134559427 },
{1,160.5,-2.294131107,18.69792663,0.134676731 },
{1,161.5,-2.285532933,18.75489278,0.134783385 },
{1,162.5,-2.277017201,18.81201584,0.134879611 },
{1,163.5,-2.268578584,18.86928753,0.134965637 },
{1,164.5,-2.260211837,18.92669959,0.135041695 },
{1,165.5,-2.251911809,18.98424378,0.135108024 },
{1,166.5,-2.243673453,19.04191185,0.135164867 },
{1,167.5,-2.235491842,19.09969557,0.135212469 },
{1,168.5,-2.227362173,19.15758672,0.135251083 },
{1,169.5,-2.21927979,19.21557707,0.135280963 },
{1,170.5,-2.211240187,19.27365839,0.135302371 },
{1,171.5,-2.203239029,19.33182247,0.135315568 },
{1,172.5,-2.195272161,19.39006106,0.135320824 },
{1,173.5,-2.187335625,19.44836594,0.135318407 },
{1,174.5,-2.179425674,19.50672885,0.135308594 },
{1,175.5,-2.171538789,19.56514153,0.135291662 },
{1,176.5,-2.163671689,19.62359571,0.135267891 },
{1,177.5,-2.155821357,19.6820831,0.135237567 },
{1,178.5,-2.147985046,19.74059538,0.135200976 },
{1,179.5,-2.140160305,19.7991242,0.135158409 },
{1,180.5,-2.132344989,19.85766121,0.135110159 },
{1,181.5,-2.124537282,19.916198,0.135056522 },
{1,182.5,-2.116735712,19.97472615,0.134997797 },
{1,183.5,-2.108939167,20.03323719,0.134934285 },
{1,184.5,-2.10114692,20.09172262,0.134866291 },
{1,185.5,-2.093358637,20.15017387,0.134794121 },
{1,186.5,-2.085574403,20.20858236,0.134718085 },
{1,187.5,-2.077794735,20.26693944,0.134638494 },
{1,188.5,-2.070020599,20.32523642,0.134555663 },
{1,189.5,-2.062253431,20.38346455,0.13446991 },
{1,190.5,-2.054495145,20.44161501,0.134381553 },
{1,191.5,-2.046748156,20.49967894,0.134290916 },
{1,192.5,-2.039015385,20.5576474,0.134198323 },
{1,193.5,-2.031300282,20.6155114,0.134104101 },
{1,194.5,-2.023606828,20.67326189,0.134008581 },
{1,195.5,-2.015942013,20.73088905,0.133912066 },
{1,196.5,-2.008305745,20.7883851,0.133814954 },
{1,197.5,-2.000706389,20.84574003,0.133717552 },
{1,198.5,-1.993150137,20.90294449,0.1336202 },
{1,199.5,-1.985643741,20.95998909,0.133523244 },
{1,200.5,-1.97819451,21.01686433,0.133427032 },
{1,201.5,-1.970810308,21.07356067,0.133331914 },
{1,202.5,-1.96349954,21.1300685,0.133238245 },
{1,203.5,-1.956271141,21.18637813,0.133146383 },
{1,204.5,-1.949134561,21.24247982,0.13305669 },
{1,205.5,-1.942099744,21.29836376,0.132969531 },
{1,206.5,-1.935177101,21.35402009,0.132885274 },
{1,207.5,-1.92837748,21.40943891,0.132804292 },
{1,208.5,-1.921712136,21.46461026,0.132726962 },
{1,209.5,-1.915192685,21.51952414,0.132653664 },
{1,210.5,-1.908831065,21.57417053,0.132584784 },
{1,211.5,-1.902639482,21.62853937,0.132520711 },
{1,212.5,-1.896630358,21.68262062,0.132461838 },
{1,213.5,-1.890816268,21.73640419,0.132408563 },
{1,214.5,-1.885209876,21.78988003,0.132361289 },
{1,215.5,-1.879823505,21.84303819,0.132320427 },
{1,216.5,-1.874670324,21.8958685,0.132286382 },
{1,217.5,-1.869760299,21.94836168,0.1322596 },
{1,218.5,-1.865113245,22.00050569,0.132240418 },
{1,219.5,-1.860734944,22.05229242,0.13222933 },
{1,220.5,-1.85663384,22.10371305,0.132226801 },
{1,221.5,-1.852827186,22.15475603,0.132233201 },
{1,222.5,-1.849323204,22.20541249,0.132248993 },
{1,223.5,-1.846131607,22.255673,0.132274625 },
{1,224.5,-1.843261294,22.30552831,0.132310549 },
{1,225.5,-1.840720248,22.3549693,0.132357221 },
{1,226.5,-1.83851544,22.40398706,0.132415103 },
{1,227.5,-1.83665586,22.45257182,0.132484631 },
{1,228.5,-1.835138046,22.50071778,0.132566359 },
{1,229.5,-1.833972004,22.54841437,0.132660699 },
{1,230.5,-1.833157751,22.59565422,0.132768153 },
{1,231.5,-1.83269562,22.64242956,0.132889211 },
{1,232.5,-1.832584342,22.68873292,0.133024368 },
{1,233.5,-1.832820974,22.73455713,0.133174129 },
{1,234.5,-1.833400825,22.7798953,0.133338999 },
{1,235.5,-1.834317405,22.82474087,0.133519496 },
{1,236.5,-1.83555752,22.86908912,0.133716192 },
{1,237.5,-1.837119466,22.91293151,0.133929525 },
{1,238.5,-1.838987063,22.95626373,0.134160073 },
{1,239.5,-1.841146139,22.99908062,0.134408381 },
{1,240,-1.84233016,23.02029424,0.134539365 },
{2,24,-0.98660853,16.42339664,0.085451785 },
{2,24.5,-1.024496827,16.38804056,0.085025838 },
{2,25.5,-1.102698353,16.3189719,0.084214052 },
{2,26.5,-1.18396635,16.25207985,0.083455124 },
{2,27.5,-1.268071036,16.18734669,0.082748284 },
{2,28.5,-1.354751525,16.12475448,0.082092737 },
{2,29.5,-1.443689692,16.06428762,0.081487717 },
{2,30.5,-1.53454192,16.00593001,0.080932448 },
{2,31.5,-1.626928093,15.94966631,0.080426175 },
{2,32.5,-1.720434829,15.89548197,0.079968176 },
{2,33.5,-1.814635262,15.84336179,0.079557735 },
{2,34.5,-1.909076262,15.79329146,0.079194187 },
{2,35.5,-2.003296102,15.7452564,0.078876895 },
{2,36.5,-2.096828937,15.69924188,0.078605255 },
{2,37.5,-2.189211877,15.65523282,0.078378696 },
{2,38.5,-2.279991982,15.61321371,0.078196674 },
{2,39.5,-2.368732949,15.57316843,0.078058667 },
{2,40.5,-2.455021314,15.53508019,0.077964169 },
{2,41.5,-2.538471972,15.49893145,0.077912684 },
{2,42.5,-2.618732901,15.46470384,0.077903716 },
{2,43.5,-2.695488973,15.43237817,0.077936763 },
{2,44.5,-2.768464816,15.40193436,0.078011309 },
{2,45.5,-2.837426693,15.37335154,0.078126817 },
{2,46.5,-2.902178205,15.34660842,0.078282739 },
{2,47.5,-2.962580386,15.32168181,0.078478449 },
{2,48.5,-3.018521987,15.29854897,0.078713325 },
{2,49.5,-3.069936555,15.27718618,0.078986694 },
{2,50.5,-3.116795864,15.2575692,0.079297841 },
{2,51.5,-3.159107331,15.23967338,0.079646006 },
{2,52.5,-3.196911083,15.22347371,0.080030389 },
{2,53.5,-3.230276759,15.20894491,0.080450145 },
{2,54.5,-3.259300182,15.19606152,0.080904391 },
{2,55.5,-3.284099963,15.18479799,0.081392203 },
{2,56.5,-3.30481415,15.17512871,0.081912623 },
{2,57.5,-3.321596954,15.16702811,0.082464661 },
{2,58.5,-3.334615646,15.16047068,0.083047295 },
{2,59.5,-3.344047622,15.15543107,0.083659478 },
{2,60.5,-3.35007771,15.15188405,0.084300139 },
{2,61.5,-3.352893805,15.14980479,0.0849682 },
{2,62.5,-3.352691376,15.14916825,0.085662539 },
{2,63.5,-3.34966438,15.14994984,0.086382035 },
{2,64.5,-3.343998803,15.15212585,0.087125591 },
{2,65.5,-3.335889574,15.15567186,0.087892047 },
{2,66.5,-3.325522491,15.16056419,0.088680264 },
{2,67.5,-3.31307846,15.16677947,0.089489106 },
{2,68.5,-3.298732648,15.17429464,0.090317434 },
{2,69.5,-3.282653831,15.18308694,0.091164117 },
{2,70.5,-3.265003896,15.1931339,0.092028028 },
{2,71.5,-3.245937506,15.20441335,0.092908048 },
{2,72.5,-3.225606516,15.21690296,0.093803033 },
{2,73.5,-3.204146115,15.2305815,0.094711916 },
{2,74.5,-3.181690237,15.24542745,0.095633595 },
{2,75.5,-3.158363475,15.26141966,0.096566992 },
{2,76.5,-3.134282833,15.27853728,0.097511046 },
{2,77.5,-3.109557879,15.29675967,0.09846471 },
{2,78.5,-3.084290931,15.31606644,0.099426955 },
{2,79.5,-3.058577292,15.33643745,0.100396769 },
{2,80.5,-3.032505499,15.35785274,0.101373159 },
{2,81.5,-3.0061576,15.38029261,0.10235515 },
{2,82.5,-2.979609448,15.40373754,0.103341788 },
{2,83.5,-2.952930993,15.42816819,0.104332139 },
{2,84.5,-2.926186592,15.45356545,0.105325289 },
{2,85.5,-2.899435307,15.47991037,0.106320346 },
{2,86.5,-2.872731211,15.50718419,0.10731644 },
{2,87.5,-2.846123683,15.53536829,0.108312721 },
{2,88.5,-2.819657704,15.56444426,0.109308364 },
{2,89.5,-2.793374145,15.5943938,0.110302563 }, 
{2,90.5,-2.767310047,15.6251988,0.111294537 },
{2,91.5,-2.741498897,15.65684126,0.112283526 },
{2,92.5,-2.715970894,15.68930333,0.113268793 },
{2,93.5,-2.690753197,15.7225673,0.114249622 },
{2,94.5,-2.665870146,15.75661555,0.115225321 },
{2,95.5,-2.641343436,15.79143062,0.116195218 },
{2,96.5,-2.617192204,15.82699517,0.117158667 },
{2,97.5,-2.593430614,15.86329241,0.118115073 },
{2,98.5,-2.570076037,15.90030484,0.119063807 },
{2,99.5,-2.547141473,15.93801545,0.12000429 },
{2,100.5,-2.524635245,15.97640787,0.120935994 },
{2,101.5,-2.502569666,16.01546483,0.121858355 },
{2,102.5,-2.48095189,16.05516984,0.12277087 },
{2,103.5,-2.459785573,16.09550688,0.123673085 },
{2,104.5,-2.439080117,16.13645881,0.124564484 },
{2,105.5,-2.418838304,16.17800955,0.125444639 },
{2,106.5,-2.399063683,16.22014281,0.126313121 },
{2,107.5,-2.379756861,16.26284277,0.127169545 },
{2,108.5,-2.360920527,16.30609316,0.128013515 },
{2,109.5,-2.342557728,16.34987759,0.128844639 },
{2,110.5,-2.324663326,16.39418118,0.129662637 },
{2,111.5,-2.307240716,16.43898741,0.130467138 },
{2,112.5,-2.290287663,16.48428082,0.131257852 },
{2,113.5,-2.273803847,16.53004554,0.132034479 },
{2,114.5,-2.257782149,16.57626713,0.132796819 },
{2,115.5,-2.242227723,16.62292864,0.133544525 },
{2,116.5,-2.227132805,16.67001572,0.134277436 },
{2,117.5,-2.212495585,16.71751288,0.134995324 },
{2,118.5,-2.19831275,16.76540496,0.135697996 },
{2,119.5,-2.184580762,16.81367689,0.136385276 },
{2,120.5,-2.171295888,16.86231366,0.137057004 },
{2,121.5,-2.158454232,16.91130036,0.137713039 },
{2,122.5,-2.146051754,16.96062216,0.138353254 },
{2,123.5,-2.134084303,17.0102643,0.138977537 },
{2,124.5,-2.122547629,17.06021213,0.139585795 },
{2,125.5,-2.111437411,17.11045106,0.140177947 },
{2,126.5,-2.100749266,17.16096656,0.140753927 },
{2,127.5,-2.090478774,17.21174424,0.141313686 },
{2,128.5,-2.080621484,17.26276973,0.141857186 },
{2,129.5,-2.071172932,17.31402878,0.142384404 },
{2,130.5,-2.062128649,17.3655072,0.142895332 },
{2,131.5,-2.053484173,17.4171909,0.143389972 },
{2,132.5,-2.045235058,17.46906585,0.143868341 },
{2,133.5,-2.03737688,17.52111811,0.144330469 },
{2,134.5,-2.029906684,17.57333347,0.144776372 },
{2,135.5,-2.022817914,17.62569869,0.145206138 },
{2,136.5,-2.016107084,17.67819987,0.145619819 },
{2,137.5,-2.009769905,17.7308234,0.146017491 },
{2,138.5,-2.003802134,17.78355575,0.146399239 },
{2,139.5,-1.998199572,17.83638347,0.146765161 },
{2,140.5,-1.992958064,17.88929321,0.147115364 },
{2,141.5,-1.988073505,17.94227168,0.147449967 },
{2,142.5,-1.983541835,17.9953057,0.147769097 },
{2,143.5,-1.979359041,18.04838216,0.148072891 },
{2,144.5,-1.975521156,18.10148804,0.148361495 },
{2,145.5,-1.972024258,18.15461039,0.148635067 },
{2,146.5,-1.968864465,18.20773639,0.148893769 },
{2,147.5,-1.966037938,18.26085325,0.149137776 },
{2,148.5,-1.963540872,18.31394832,0.14936727 },
{2,149.5,-1.961369499,18.36700902,0.149582439 },
{2,150.5,-1.959520079,18.42002284,0.149783482 },
{2,151.5,-1.9579889,18.47297739,0.149970604 },
{2,152.5,-1.956772271,18.52586035,0.15014402 },
{2,153.5,-1.95586652,18.57865951,0.15030395 },
{2,154.5,-1.955267984,18.63136275,0.150450621 },
{2,155.5,-1.954973011,18.68395801,0.15058427 },
{2,156.5,-1.954977947,18.73643338,0.150705138 },
{2,157.5,-1.955279136,18.788777,0.150813475 },
{2,158.5,-1.955872909,18.84097713,0.150909535 },
{2,159.5,-1.956755579,18.89302212,0.150993582 },
{2,160.5,-1.957923436,18.94490041,0.151065883 },
{2,161.5,-1.959372737,18.99660055,0.151126714 },
{2,162.5,-1.9610997,19.04811118,0.151176355 },
{2,163.5,-1.963100496,19.09942105,0.151215094 },
{2,164.5,-1.96537124,19.15051899,0.151243223 },
{2,165.5,-1.967907983,19.20139397,0.151261042 },
{2,166.5,-1.970706706,19.25203503,0.151268855 },
{2,167.5,-1.973763307,19.30243131,0.151266974 },
{2,168.5,-1.977073595,19.35257209,0.151255713 },
{2,169.5,-1.980633277,19.40244671,0.151235395 },
{2,170.5,-1.984437954,19.45204465,0.151206347 },
{2,171.5,-1.988483106,19.50135548,0.151168902 },
{2,172.5,-1.992764085,19.55036888,0.151123398 },
{2,173.5,-1.997276103,19.59907464,0.15107018 },
{2,174.5,-2.002014224,19.64746266,0.151009595 },
{2,175.5,-2.00697335,19.69552294,0.150942 },
{2,176.5,-2.012148213,19.7432456,0.150867753 },
{2,177.5,-2.017533363,19.79062086,0.150787221 },
{2,178.5,-2.023123159,19.83763907,0.150700774 },
{2,179.5,-2.028911755,19.88429066,0.150608788 },
{2,180.5,-2.034893091,19.9305662,0.150511645 },
{2,181.5,-2.041060881,19.97645636,0.150409731 },
{2,182.5,-2.047408604,20.02195192,0.15030344 },
{2,183.5,-2.05392949,20.06704377,0.150193169 },
{2,184.5,-2.060616513,20.11172291,0.150079322 },
{2,185.5,-2.067462375,20.15598047,0.149962308 },
{2,186.5,-2.074459502,20.19980767,0.14984254 },
{2,187.5,-2.081600029,20.24319586,0.149720441 },
{2,188.5,-2.088875793,20.28613648,0.149596434 },
{2,189.5,-2.096278323,20.32862109,0.149470953 },
{2,190.5,-2.103798828,20.37064138,0.149344433 },
{2,191.5,-2.111428194,20.41218911,0.149217319 },
{2,192.5,-2.119156972,20.45325617,0.14909006 },
{2,193.5,-2.126975375,20.49383457,0.14896311 },
{2,194.5,-2.134873266,20.5339164,0.148836931 },
{2,195.5,-2.142840157,20.57349387,0.148711989 },
{2,196.5,-2.150865204,20.61255929,0.148588757 },
{2,197.5,-2.158937201,20.65110506,0.148467715 },
{2,198.5,-2.167044578,20.6891237,0.148349348 },
{2,199.5,-2.175176987,20.72660728,0.14823412 },
{2,200.5,-2.183317362,20.76355011,0.148122614 },
{2,201.5,-2.191457792,20.79994337,0.148015249 },
{2,202.5,-2.199583649,20.83578051,0.147912564 },
{2,203.5,-2.207681525,20.87105449,0.147815078 },
{2,204.5,-2.215737645,20.90575839,0.147723315 },
{2,205.5,-2.223739902,20.93988477,0.147637768 },
{2,206.5,-2.231667995,20.97342858,0.147559083 },
{2,207.5,-2.239511942,21.00638171,0.147487716 },
{2,208.5,-2.247257081,21.0387374,0.14742421 },
{2,209.5,-2.254885145,21.07048996,0.147369174 },
{2,210.5,-2.26238209,21.10163241,0.147323144 },
{2,211.5,-2.269731517,21.13215845,0.147286698 },
{2,212.5,-2.276917229,21.16206171,0.147260415 },
{2,213.5,-2.283925442,21.1913351,0.147244828 },
{2,214.5,-2.290731442,21.21997472,0.147240683 },
{2,215.5,-2.29732427,21.24797262,0.147248467 },
{2,216.5,-2.303687802,21.27532239,0.14726877 },
{2,217.5,-2.309799971,21.30201933,0.147302299 },
{2,218.5,-2.315651874,21.32805489,0.147349514 },
{2,219.5,-2.32121731,21.35342563,0.147411215 },
{2,220.5,-2.326481911,21.37812462,0.147487979 },
{2,221.5,-2.331428139,21.40214589,0.147580453 },
{2,222.5,-2.336038473,21.42548351,0.147689289 },
{2,223.5,-2.34029545,21.44813156,0.14781515 },
{2,224.5,-2.344181703,21.47008412,0.147958706 },
{2,225.5,-2.34768,21.49133529,0.148120633 },
{2,226.5,-2.350773286,21.51187918,0.148301619 },
{2,227.5,-2.353444725,21.53170989,0.148502355 },
{2,228.5,-2.355677743,21.55082155,0.148723546 },
{2,229.5,-2.35745607,21.56920824,0.148965902 },
{2,230.5,-2.358763788,21.58686406,0.149230142 },
{2,231.5,-2.359585369,21.60378309,0.149516994 },
{2,232.5,-2.359905726,21.61995939,0.149827195 },
{2,233.5,-2.359710258,21.635387,0.150161492 },
{2,234.5,-2.358980464,21.65006126,0.150520734 },
{2,235.5,-2.357714508,21.6639727,0.150905439 },
{2,236.5,-2.355892424,21.67711736,0.151316531 },
{2,237.5,-2.353501353,21.68948935,0.151754808 },
{2,238.5,-2.350528726,21.70108288,0.152221086 },
{2,239.5,-2.346962247,21.71189225,0.152716206 },
{2,240,-2.34495843,21.71699934,0.152974718 } };

        public static double[,] CDCHead = {
{ 1,0,4.427825037,35.81366835,0.052172542 },
{ 1,0.5,4.310927464,37.19361054,0.047259148 },
{ 1,1.5,3.869576802,39.20742929,0.040947903 },
{ 1,2.5,3.305593039,40.65233195,0.037027722 },
{ 1,3.5,2.720590297,41.76516959,0.034364245 },
{ 1,4.5,2.16804824,42.66116148,0.032462175 },
{ 1,5.5,1.675465689,43.40488731,0.031064702 },
{ 1,6.5,1.255160322,44.03609923,0.03002267 },
{ 1,7.5,0.91054114,44.58096912,0.029242173 },
{ 1,8.5,0.639510474,45.05761215,0.028660454 },
{ 1,9.5,0.436978864,45.4790756,0.0282336 },
{ 1,10.5,0.296275856,45.85505706,0.027929764 },
{ 1,11.5,0.210107251,46.19295427,0.027725179 },
{ 1,12.5,0.171147024,46.49853438,0.027601686 },
{ 1,13.5,0.172393886,46.77637684,0.027545148 },
{ 1,14.5,0.207371541,47.03017599,0.027544382 },
{ 1,15.5,0.270226126,47.2629533,0.027590417 },
{ 1,16.5,0.355757274,47.47720989,0.02767598 },
{ 1,17.5,0.459407627,47.67503833,0.027795115 },
{ 1,18.5,0.577227615,47.85820606,0.0279429 },
{ 1,19.5,0.705826778,48.02821867,0.028115241 },
{ 1,20.5,0.842319055,48.18636864,0.028308707 },
{ 1,21.5,0.984266833,48.3337732,0.028520407 },
{ 1,22.5,1.129626698,48.47140432,0.028747896 },
{ 1,23.5,1.276691223,48.60011223,0.028989089 },
{ 1,24.5,1.424084853,48.72064621,0.029242207 },
{ 1,25.5,1.570621291,48.83366629,0.029505723 },
{ 1,26.5,1.715393998,48.93976089,0.029778323 },
{ 1,27,1.786877809,48.99037705,0.029917669 },
{ 1,27.5,1.857652984,49.03945383,0.030058871 },
{ 1,28.5,1.996810563,49.13321432,0.030346384 },
{ 1,29.5,2.132411346,49.22146409,0.030640006 },
{ 1,30.5,2.264111009,49.30458348,0.030938992 },
{ 1,31.5,2.391658052,49.38291658,0.031242693 },
{ 1,32.5,2.514878222,49.45677569,0.031550537 },
{ 1,33,2.574829085,49.49211731,0.031705855 },
{ 1,33.5,2.633661226,49.526445,0.031862026 },
{ 1,34.5,2.747949445,49.59218385,0.03217672 },
{ 1,35.5,2.857728375,49.65422952,0.032494231 },
{ 1,36,2.910932095,49.68393611,0.032653934 },
{ 2,0,-1.298749689,34.7115617,0.046905108 },
{ 2,0.5,-1.440271514,36.03453876,0.042999604 },
{ 2,1.5,-1.581016348,37.97671987,0.038067862 },
{ 2,2.5,-1.593136386,39.3801263,0.035079612 },
{ 2,3.5,-1.521492427,40.46773733,0.033096443 },
{ 2,4.5,-1.394565915,41.34841008,0.03170963 },
{ 2,5.5,-1.231713389,42.0833507,0.030709039 },
{ 2,6.5,-1.046582628,42.71033603,0.029974303 },
{ 2,7.5,-0.848932692,43.25428882,0.029430992 },
{ 2,8.5,-0.645779124,43.73249646,0.029030379 },
{ 2,9.5,-0.442165412,44.15742837,0.028739112 },
{ 2,10.5,-0.24163206,44.53836794,0.028533537 },
{ 2,11.5,-0.046673786,44.88240562,0.028396382 },
{ 2,12.5,0.141031094,45.19507651,0.028314722 },
{ 2,13.5,0.320403169,45.48078147,0.028278682 },
{ 2,14.5,0.490807133,45.74307527,0.028280585 },
{ 2,15.5,0.65193505,45.98486901,0.028314363 },
{ 2,16.5,0.803718086,46.20857558,0.028375159 },
{ 2,17.5,0.946259679,46.41621635,0.028459033 },
{ 2,18.5,1.079784984,46.60950084,0.028562759 },
{ 2,19.5,1.204602687,46.78988722,0.028683666 },
{ 2,20.5,1.321076285,46.95862881,0.028819525 },
{ 2,21.5,1.429602576,47.11681039,0.028968459 },
{ 2,22.5,1.530595677,47.26537682,0.029128879 },
{ 2,23.5,1.624475262,47.40515585,0.029299426 },
{ 2,24.5,1.71165803,47.53687649,0.029478937 },
{ 2,25.5,1.792551616,47.66118396,0.029666406 },
{ 2,26.5,1.867550375,47.77865186,0.02986096 },
{ 2,27,1.902958087,47.83498317,0.029960653 },
{ 2,27.5,1.93703258,47.8897923,0.030061839 },
{ 2,28.5,2.001358669,47.99506422,0.030268375 },
{ 2,29.5,2.060870301,48.09488048,0.030479985 },
{ 2,30.5,2.115889982,48.18961365,0.03069615 },
{ 2,31.5,2.16672113,48.2796011,0.030916413 },
{ 2,32.5,2.21364844,48.36514917,0.031140368 },
{ 2,33,2.235737513,48.40634683,0.031253614 },
{ 2,33.5,2.256943216,48.44653703,0.031367651 },
{ 2,34.5,2.296844024,48.52401894,0.031597939 },
{ 2,35.5,2.333589434,48.59782828,0.031830942 },
{ 2,36,2.350847202,48.63342328,0.031948378 }};

        public static double[,] CDCWtHt = { 
                                              { 1,77,-0.999294215,10.27440527,0.077115837 },
{ 1,77.5,-0.979897716,10.38901871,0.076995353 },
{ 1,78.5,-0.943555181,10.61724901,0.076769511 },
{ 1,79.5,-0.91080778,10.84432907,0.076564374 },
{ 1,80.5,-0.882026316,11.07048885,0.076380766 },
{ 1,81.5,-0.857561667,11.29597453,0.076219662 },
{ 1,82.5,-0.837750377,11.52104655,0.07608215 },
{ 1,83.5,-0.822919198,11.74597768,0.075969382 },
{ 1,84.5,-0.813388595,11.97105103,0.075882537 },
{ 1,85.5,-0.809475279,12.19655799,0.075822785 },
{ 1,86.5,-0.811493792,12.4227963,0.075791244 },
{ 1,87.5,-0.8197572,12.65006791,0.075788944 },
{ 1,88.5,-0.834576932,12.87867701,0.07581679 },
{ 1,89.5,-0.856261805,13.10892794,0.075875517 },
{ 1,90.5,-0.885116299,13.34112314,0.075965652 },
{ 1,91.5,-0.921432943,13.5755615,0.076087468 },
{ 1,92.5,-0.965501267,13.81253552,0.076240931 },
{ 1,93.5,-1.017588552,14.05233041,0.076425662 },
{ 1,94.5,-1.077941994,14.29522185,0.07664088 },
{ 1,95.5,-1.146773671,14.54147499,0.076885365 },
{ 1,96.5,-1.224269596,14.79134177,0.07715739 },
{ 1,97.5,-1.310558831,15.04506152,0.077454707 },
{ 1,98.5,-1.405713355,15.30285949,0.077774507 },
{ 1,99.5,-1.509717075,15.56494815,0.078113436 },
{ 1,100.5,-1.622491233,15.83152429,0.078467542 },
{ 1,101.5,-1.743825743,16.10277448,0.078832409 },
{ 1,102.5,-1.873365511,16.37887678,0.079203258 },
{ 1,103.5,-2.010641647,16.65999867,0.079574978 },
{ 1,104.5,-2.154957918,16.94630912,0.079942558 },
{ 1,105.5,-2.305458316,17.23797444,0.08030117 },
{ 1,106.5,-2.461019713,17.53517134,0.080646757 },
{ 1,107.5,-2.62033059,17.83808212,0.080976208 },
{ 1,108.5,-2.781787762,18.14690821,0.0812881 },
{ 1,109.5,-2.943638944,18.46185811,0.081582687 },
{ 1,110.5,-3.103888502,18.78315936,0.081862656 },
{ 1,111.5,-3.260482798,19.11103983,0.082132791 },
{ 1,112.5,-3.411305599,19.44572803,0.082400213 },
{ 1,113.5,-3.554288672,19.78744004,0.082674023 },
{ 1,114.5,-3.687600863,20.13635563,0.082964333 },
{ 1,115.5,-3.809599339,20.49262111,0.083282267 },
{ 1,116.5,-3.919005213,20.85632542,0.083638758 },
{ 1,117.5,-4.014882272,21.2274989,0.084044246 },
{ 1,118.5,-4.096683061,21.60610366,0.084508001 },
{ 1,119.5,-4.164160421,21.9920407,0.085038256 },
{ 1,120.5,-4.217425718,22.3851382,0.085641503 },
{ 1,121.5,-4.256802224,22.78516628,0.086323118 },
{ 2,77,-0.957840869,10.08653219,0.081713853 },
{ 2,77.5,-0.935908436,10.19868351,0.081394448 },
{ 2,78.5,-0.89621042,10.42217324,0.080780644 },
{ 2,79.5,-0.863423474,10.64473659,0.080208403 },
{ 2,80.5,-0.839250279,10.86657146,0.079687207 },
{ 2,81.5,-0.825395013,11.08788714,0.079225952 },
{ 2,82.5,-0.823487667,11.30890397,0.078832728 },
{ 2,83.5,-0.834997067,11.52985331,0.078514592 },
{ 2,84.5,-0.861125495,11.75097872,0.078277372 },
{ 2,85.5,-0.90275588,11.97253416,0.078125431 },
{ 2,86.5,-0.960308955,12.19478883,0.078061602 },
{ 2,87.5,-1.033704489,12.41802682,0.078087089 },
{ 2,88.5,-1.122303405,12.64254963,0.078201515 },
{ 2,89.5,-1.224887418,12.86867851,0.07840306 },
{ 2,90.5,-1.339655646,13.09675786,0.078688751 },
{ 2,91.5,-1.464342037,13.32715202,0.079054697 },
{ 2,92.5,-1.596224732,13.56025156,0.079496621 },
{ 2,93.5,-1.732305592,13.79646793,0.080010179 },
{ 2,94.5,-1.869440665,14.03623165,0.080591346 },
{ 2,95.5,-2.004558693,14.27998232,0.081236502 },
{ 2,96.5,-2.134764169,14.5281658,0.08194262 },
{ 2,97.5,-2.257524917,14.78122196,0.082707038 },
{ 2,98.5,-2.370762249,15.03957746,0.083527227 },
{ 2,99.5,-2.472965302,15.30363303,0.084400264 },
{ 2,100.5,-2.563140425,15.5737634,0.085322654 },
{ 2,101.5,-2.640873937,15.8503043,0.086289668 },
{ 2,102.5,-2.706178899,16.1335593,0.087295416 },
{ 2,103.5,-2.759500412,16.42379037,0.088332358 },
{ 2,104.5,-2.801578893,16.72122308,0.089391426 },
{ 2,105.5,-2.833376069,17.02604617,0.090461996 },
{ 2,106.5,-2.855987198,17.33841369,0.09153201 },
{ 2,107.5,-2.870584724,17.65844486,0.092588053 },
{ 2,108.5,-2.878341197,17.98622785,0.093615622 },
{ 2,109.5,-2.880404823,18.32181829,0.094599184 },
{ 2,110.5,-2.877853767,18.66524194,0.095522442 },
{ 2,111.5,-2.871676584,19.01649457,0.096368448 },
{ 2,112.5,-2.86277466,19.37553957,0.097119646 },
{ 2,113.5,-2.851915004,19.74231348,0.097758211 },
{ 2,114.5,-2.839760032,20.11672014,0.098265916 },
{ 2,115.5,-2.826824189,20.4986363,0.098624434 },
{ 2,116.5,-2.813480089,20.88790914,0.09881529 },
{ 2,117.5,-2.799924586,21.28435965,0.09882 },
{ 2,118.5,-2.786142221,21.6877854,0.098620143 },
{ 2,119.5,-2.771843402,22.09796571,0.098197431 },
{ 2,120.5,-2.756365595,22.51466977,0.097533789 },
{ 2,121.5,-2.738514883,22.93766971,0.09661143 }
                                          };

        public static double[,] CDCWtLgth = { 
                                                { 1,45,1.44903689,2.289757735,0.149236691 },
{ 1,45.5,1.31794165,2.38617219,0.144790131 },
{ 1,46.5,1.041730589,2.587097922,0.1365472 },
{ 1,47.5,0.756615683,2.797952593,0.129156077 },
{ 1,48.5,0.472617587,3.017679791,0.122589498 },
{ 1,49.5,0.197455933,3.245225583,0.116802688 },
{ 1,50.5,-0.063272822,3.479567767,0.111734963 },
{ 1,51.5,-0.305663778,3.719739648,0.107316407 },
{ 1,52.5,-0.527210764,3.964838222,0.10347453 },
{ 1,53.5,-0.726356263,4.214033476,0.100139369 },
{ 1,54.5,-0.902380499,4.466562625,0.097246097 },
{ 1,55.5,-1.055126826,4.721730669,0.09473644 },
{ 1,56.5,-1.184933443,4.978903744,0.092558749 },
{ 1,57.5,-1.292531809,5.237504753,0.09066765 },
{ 1,58.5,-1.378973111,5.497008915,0.089023438 },
{ 1,59.5,-1.445563111,5.756939907,0.087591418 },
{ 1,60.5,-1.49380121,6.016866693,0.086341291 },
{ 1,61.5,-1.525332827,6.276400575,0.085246598 },
{ 1,62.5,-1.541839648,6.535195541,0.084284401 },
{ 1,63.5,-1.545098045,6.792942366,0.083434649 },
{ 1,64.5,-1.536863318,7.049370425,0.08268004 },
{ 1,65.5,-1.518786093,7.304248994,0.082005843 },
{ 1,66.5,-1.49249029,7.557381995,0.081399411 },
{ 1,67.5,-1.459487925,7.808610136,0.080850107 },
{ 1,68.5,-1.421167427,8.057810266,0.08034908 },
{ 1,69.5,-1.378835366,8.304892397,0.079888977 },
{ 1,70.5,-1.333634661,8.549802669,0.079463915 },
{ 1,71.5,-1.286605147,8.792519752,0.079069193 },
{ 1,72.5,-1.238665517,9.033054944,0.07870118 },
{ 1,73.5,-1.19066716,9.271448675,0.078357096 },
{ 1,74.5,-1.143316882,9.507773605,0.078035021 },
{ 1,75.5,-1.097263403,9.742129356,0.077733651 },
{ 1,76.5,-1.053083813,9.974642178,0.077452242 },
{ 1,77.5,-1.011294273,10.20546331,0.077190512 },
{ 1,78.5,-0.972360231,10.43476723,0.076948562 },
{ 1,79.5,-0.936705887,10.66274993,0.076726804 },
{ 1,80.5,-0.904722736,10.88962699,0.076525901 },
{ 1,81.5,-0.876777097,11.11563177,0.076346711 },
{ 1,82.5,-0.853216568,11.34101346,0.076190236 },
{ 1,83.5,-0.834375406,11.56603512,0.076057579 },
{ 1,84.5,-0.820578855,11.79097176,0.075949901 },
{ 1,85.5,-0.81214646,12.01610828,0.075868383 },
{ 1,86.5,-0.809394398,12.24173753,0.075814185 },
{ 1,87.5,-0.812636889,12.46815824,0.075788413 },
{ 1,88.5,-0.822186712,12.69567298,0.075792075 },
{ 1,89.5,-0.838354876,12.92458613,0.075826044 },
{ 1,90.5,-0.861449493,13.15520182,0.075891019 },
{ 1,91.5,-0.891773904,13.38782185,0.075987476 },
{ 1,92.5,-0.929617736,13.6227442,0.076115636 },
{ 1,93.5,-0.975268944,13.86025986,0.076275395 },
{ 1,94.5,-1.028990493,14.10065234,0.076466299 },
{ 1,95.5,-1.091024455,14.34419522,0.076687482 },
{ 1,96.5,-1.161574946,14.59115139,0.076937631 },
{ 1,97.5,-1.240820737,14.84177007,0.077214912 },
{ 1,98.5,-1.328879402,15.0962879,0.077516968 },
{ 1,99.5,-1.425809463,15.35492729,0.077840877 },
{ 1,100.5,-1.531575592,15.61789822,0.078183177 },
{ 1,101.5,-1.646081976,15.88539464,0.078539804 },
{ 1,102.5,-1.769082483,16.15760201,0.078906277 },
{ 1,103.5,-1.900221246,16.43469418,0.079277694 },
{ 2,45,0.666839915,2.305396985,0.168969897 },
{ 2,45.5,0.699616404,2.403256702,0.157654766 },
{ 2,46.5,0.747915684,2.606020484,0.139389663 },
{ 2,47.5,0.751754737,2.817114082,0.125837223 },
{ 2,48.5,0.691329975,3.035356101,0.115888948 },
{ 2,49.5,0.559107556,3.259693318,0.108648608 },
{ 2,50.5,0.361549127,3.48922017,0.103402703 },
{ 2,51.5,0.116436203,3.723195489,0.099599651 },
{ 2,52.5,-0.152509094,3.961034945,0.096830356 },
{ 2,53.5,-0.421478627,4.202270022,0.09480477 },
{ 2,54.5,-0.671388289,4.446476028,0.093323068 },
{ 2,55.5,-0.889973526,4.693220151,0.092246459 },
{ 2,56.5,-1.071844454,4.942029343,0.091473166 },
{ 2,57.5,-1.216671445,5.192403337,0.090923715 },
{ 2,58.5,-1.327360462,5.443830096,0.090532906 },
{ 2,59.5,-1.408261687,5.69581328,0.090246768 },
{ 2,60.5,-1.464051065,5.947889759,0.090021128 },
{ 2,61.5,-1.499105627,6.199640267,0.089820688 },
{ 2,62.5,-1.517197913,6.450695818,0.089618171 },
{ 2,63.5,-1.521479703,6.700736725,0.089393174 },
{ 2,64.5,-1.514481331,6.949493534,0.089131254 },
{ 2,65.5,-1.498204976,7.196744733,0.088822943 },
{ 2,66.5,-1.474231858,7.442313819,0.088462854 },
{ 2,67.5,-1.443808911,7.686067039,0.088048963 },
{ 2,68.5,-1.407959107,7.92790936,0.087581916 },
{ 2,69.5,-1.367521025,8.167783677,0.087064605 },
{ 2,70.5,-1.32324327,8.405666621,0.086501667 },
{ 2,71.5,-1.275834578,8.641566305,0.085899159 },
{ 2,72.5,-1.226014257,8.875519723,0.085264271 },
{ 2,73.5,-1.174555804,9.107590221,0.084605096 },
{ 2,74.5,-1.122323639,9.337865054,0.083930435 },
{ 2,75.5,-1.070302348,9.566453061,0.083249631 },
{ 2,76.5,-1.019617172,9.793482492,0.082572421 },
{ 2,77.5,-0.971544123,10.01909902,0.081908788 },
{ 2,78.5,-0.927495981,10.24346467,0.081268832 },
{ 2,79.5,-0.889046221,10.46675386,0.080662561 },
{ 2,80.5,-0.857844783,10.6891553,0.080099785 },
{ 2,81.5,-0.835600041,10.91086924,0.079589888 },
{ 2,82.5,-0.824007806,11.13210717,0.079141623 },
{ 2,83.5,-0.824673085,11.35309164,0.078762888 },
{ 2,84.5,-0.839021353,11.57405623,0.078460511 },
{ 2,85.5,-0.868191531,11.79524697,0.078240047 },
{ 2,86.5,-0.912987527,12.0169203,0.078105554 },
{ 2,87.5,-0.973732843,12.23934838,0.078059544 },
{ 2,88.5,-1.050238631,12.46281861,0.078102898 },
{ 2,89.5,-1.141750538,12.68763627,0.078234935 },
{ 2,90.5,-1.246935039,12.9141268,0.078453576 },
{ 2,91.5,-1.363881842,13.1426393,0.078755652 },
{ 2,92.5,-1.490235591,13.37354263,0.079137144 },
{ 2,93.5,-1.623204367,13.60723197,0.079593737 },
{ 2,94.5,-1.759750536,13.84412275,0.080121122 },
{ 2,95.5,-1.896722704,14.08464853,0.080715361 },
{ 2,96.5,-2.031079769,14.32925018,0.081372938 },
{ 2,97.5,-2.159985258,14.57837334,0.082090922 },
{ 2,98.5,-2.280992946,14.8324557,0.082866693 },
{ 2,99.5,-2.392125361,15.09192012,0.083697706 },
{ 2,100.5,-2.491985117,15.35716167,0.08458092 },
{ 2,101.5,-2.579688446,15.62854849,0.085512655 },
{ 2,102.5,-2.654922113,15.90640903,0.086487929 },
{ 2,103.5,-2.717782155,16.19103966,0.087500575 }
                                          };

        public static double[,] CDCWtAge = { 
                                               { 1,0,1.815151075,3.530203168,0.152385273 },
{ 1,0.5,1.547523128,4.003106424,0.146025021 },
{ 1,1.5,1.068795548,4.879525083,0.136478767 },
{ 1,2.5,0.695973505,5.672888765,0.129677511 },
{ 1,3.5,0.41981509,6.391391982,0.124717085 },
{ 1,4.5,0.219866801,7.041836432,0.121040119 },
{ 1,5.5,0.077505598,7.630425182,0.1182712 },
{ 1,6.5,-0.02190761,8.162951035,0.116153695 },
{ 1,7.5,-0.0894409,8.644832479,0.114510349 },
{ 1,8.5,-0.1334091,9.081119817,0.113217163 },
{ 1,9.5,-0.1600954,9.476500305,0.11218624 },
{ 1,10.5,-0.17429685,9.835307701,0.111354536 },
{ 1,11.5,-0.1797189,10.16153567,0.110676413 },
{ 1,12.5,-0.179254,10.45885399,0.110118635 },
{ 1,13.5,-0.17518447,10.7306256,0.109656941 },
{ 1,14.5,-0.16932268,10.97992482,0.109273653 },
{ 1,15.5,-0.1631139,11.20955529,0.10895596 },
{ 1,16.5,-0.15770999,11.4220677,0.108694678 },
{ 1,17.5,-0.15402279,11.61977698,0.108483324 },
{ 1,18.5,-0.15276214,11.80477902,0.108317416 },
{ 1,19.5,-0.15446658,11.9789663,0.108193944 },
{ 1,20.5,-0.15952202,12.14404334,0.108110954 },
{ 1,21.5,-0.16817926,12.30154103,0.108067236 },
{ 1,22.5,-0.1805668,12.45283028,0.108062078 },
{ 1,23.5,-0.19670196,12.59913494,0.108095077 },
{ 1,24,-0.20615245,12.6707633,0.108125811 },
{ 1,24.5,-0.21650121,12.74154396,0.108166005 },
{ 1,25.5,-0.23979048,12.88102276,0.108274705 },
{ 1,26.5,-0.26631585,13.01842382,0.108421024 },
{ 1,27.5,-0.29575496,13.1544966,0.108604769 },
{ 1,28.5,-0.32772936,13.28989667,0.108825681 },
{ 1,29.5,-0.36181746,13.42519408,0.109083423 },
{ 1,30.5,-0.39756808,13.56088113,0.109377581 },
{ 1,31.5,-0.43452025,13.69737858,0.109707646 },
{ 1,32.5,-0.47218875,13.83504622,0.110073084 },
{ 1,33.5,-0.51012309,13.97418199,0.110473238 },
{ 1,34.5,-0.54788557,14.1150324,0.1109074 },
{ 1,35.5,-0.5850701,14.25779618,0.111374787 },
{ 1,36,-0.60333785,14.32994444,0.111620652 },
{ 1,36.5,-0.621319726,14.40262749,0.111874514 },
{ 1,37.5,-0.656295986,14.54964614,0.112405687 },
{ 1,38.5,-0.689735029,14.69893326,0.112967254 },
{ 1,39.5,-0.721410388,14.85054151,0.11355811 },
{ 1,40.5,-0.751175223,15.00449143,0.114176956 },
{ 1,41.5,-0.778904279,15.16078454,0.114822482 },
{ 1,42.5,-0.804515498,15.31940246,0.115493292 },
{ 1,43.5,-0.828003255,15.48030313,0.116187777 },
{ 1,44.5,-0.849380372,15.64343309,0.116904306 },
{ 1,45.5,-0.86869965,15.80872535,0.117641148 },
{ 1,46.5,-0.886033992,15.97610456,0.118396541 },
{ 1,47.5,-0.901507878,16.14548194,0.119168555 },
{ 1,48.5,-0.915241589,16.31676727,0.11995532 },
{ 1,49.5,-0.927377772,16.4898646,0.120754916 },
{ 1,50.5,-0.938069819,16.66467529,0.121565421 },
{ 1,51.5,-0.94747794,16.84109948,0.122384927 },
{ 1,52.5,-0.955765694,17.01903746,0.123211562 },
{ 1,53.5,-0.963096972,17.1983908,0.124043503 },
{ 1,54.5,-0.969633434,17.37906341,0.124878992 },
{ 1,55.5,-0.975532355,17.56096245,0.125716348 },
{ 1,56.5,-0.980937915,17.74400082,0.126554022 },
{ 1,57.5,-0.986006518,17.92809121,0.127390453 },
{ 1,58.5,-0.99086694,18.11315625,0.128224294 },
{ 1,59.5,-0.995644402,18.29912286,0.129054277 },
{ 1,60.5,-1.000453886,18.48592413,0.129879257 },
{ 1,61.5,-1.005399668,18.67349965,0.130698212 },
{ 1,62.5,-1.010575003,18.86179576,0.131510245 },
{ 1,63.5,-1.016061941,19.05076579,0.132314586 },
{ 1,64.5,-1.021931241,19.24037019,0.133110593 },
{ 1,65.5,-1.028242376,19.43057662,0.133897752 },
{ 1,66.5,-1.035043608,19.62136007,0.134675673 },
{ 1,67.5,-1.042372125,19.8127028,0.13544409 },
{ 1,68.5,-1.050254232,20.0045944,0.13620286 },
{ 1,69.5,-1.058705595,20.19703171,0.136951959 },
{ 1,70.5,-1.067731529,20.39001872,0.137691478 },
{ 1,71.5,-1.077321193,20.58356862,0.138421673 },
{ 1,72.5,-1.087471249,20.77769565,0.139142773 },
{ 1,73.5,-1.098152984,20.97242631,0.139855242 },
{ 1,74.5,-1.10933408,21.16779192,0.140559605 },
{ 1,75.5,-1.120974043,21.36383013,0.141256489 },
{ 1,76.5,-1.133024799,21.56058467,0.141946613 },
{ 1,77.5,-1.145431351,21.75810506,0.142630785 },
{ 1,78.5,-1.158132499,21.95644627,0.143309898 },
{ 1,79.5,-1.171061612,22.15566842,0.143984924 },
{ 1,80.5,-1.184141975,22.35583862,0.144656953 },
{ 1,81.5,-1.197307185,22.55702268,0.145327009 },
{ 1,82.5,-1.210475099,22.75929558,0.145996289 },
{ 1,83.5,-1.223565263,22.9627344,0.146666 },
{ 1,84.5,-1.236497304,23.16741888,0.147337375 },
{ 1,85.5,-1.249186293,23.37343341,0.148011715 },
{ 1,86.5,-1.261555446,23.58086145,0.148690256 },
{ 1,87.5,-1.273523619,23.78979096,0.149374297 },
{ 1,88.5,-1.285013783,24.00031064,0.150065107 },
{ 1,89.5,-1.295952066,24.21251028,0.150763933 },
{ 1,90.5,-1.306268473,24.42648043,0.151471982 },
{ 1,91.5,-1.31589753,24.642312,0.152190413 },
{ 1,92.5,-1.324778843,24.86009596,0.152920322 },
{ 1,93.5,-1.332857581,25.07992303,0.153662731 },
{ 1,94.5,-1.340080195,25.30188584,0.154418635 },
{ 1,95.5,-1.346412105,25.52606977,0.155188768 },
{ 1,96.5,-1.351813296,25.75256528,0.155973912 },
{ 1,97.5,-1.356253969,25.9814599,0.156774684 },
{ 1,98.5,-1.359710858,26.2128399,0.157591579 },
{ 1,99.5,-1.362167159,26.44679027,0.158424964 },
{ 1,100.5,-1.363612378,26.68339457,0.159275071 },
{ 1,101.5,-1.364042106,26.92273494,0.160141995 },
{ 1,102.5,-1.363457829,27.16489199,0.161025689 },
{ 1,103.5,-1.361865669,27.40994539,0.161925976 },
{ 1,104.5,-1.35928261,27.65796978,0.162842452 },
{ 1,105.5,-1.355720571,27.90904433,0.163774719 },
{ 1,106.5,-1.351202536,28.16324264,0.164722138 },
{ 1,107.5,-1.345754408,28.42063744,0.165683945 },
{ 1,108.5,-1.339405453,28.68130005,0.166659247 },
{ 1,109.5,-1.332188093,28.94530029,0.167647017 },
{ 1,110.5,-1.324137479,29.21270645,0.168646104 },
{ 1,111.5,-1.315291073,29.48358527,0.169655235 },
{ 1,112.5,-1.30568824,29.75800198,0.170673022 },
{ 1,113.5,-1.295369867,30.03602021,0.17169797 },
{ 1,114.5,-1.284374967,30.31770417,0.17272854 },
{ 1,115.5,-1.272750864,30.60311107,0.173762961 },
{ 1,116.5,-1.260539193,30.89230072,0.174799493 },
{ 1,117.5,-1.247783611,31.18532984,0.175836284 },
{ 1,118.5,-1.234527763,31.48225315,0.176871417 },
{ 1,119.5,-1.220815047,31.78312329,0.177902912 },
{ 1,120.5,-1.206688407,32.08799062,0.17892874 },
{ 1,121.5,-1.19219015,32.39690313,0.17994683 },
{ 1,122.5,-1.177361786,32.7099062,0.180955078 },
{ 1,123.5,-1.162243894,33.02704244,0.181951361 },
{ 1,124.5,-1.146876007,33.34835148,0.182933537 },
{ 1,125.5,-1.131296524,33.67386973,0.183899465 },
{ 1,126.5,-1.115542634,34.00363017,0.184847006 },
{ 1,127.5,-1.099650267,34.33766207,0.185774041 },
{ 1,128.5,-1.083654055,34.67599076,0.18667847 },
{ 1,129.5,-1.067587314,35.01863732,0.187558229 },
{ 1,130.5,-1.051482972,35.36561737,0.18841128 },
{ 1,131.5,-1.035367321,35.71694723,0.189235738 },
{ 1,132.5,-1.019277299,36.07262569,0.190029545 },
{ 1,133.5,-1.003235326,36.43265996,0.190790973 },
{ 1,134.5,-0.987269866,36.79704392,0.191518224 },
{ 1,135.5,-0.971406609,37.1657671,0.192209619 },
{ 1,136.5,-0.955670107,37.53881268,0.192863569 },
{ 1,137.5,-0.940083834,37.91615721,0.193478582 },
{ 1,138.5,-0.924670244,38.2977703,0.194053274 },
{ 1,139.5,-0.909450843,38.6836143,0.194586368 },
{ 1,140.5,-0.894446258,39.07364401,0.195076705 },
{ 1,141.5,-0.879676305,39.46780643,0.195523246 },
{ 1,142.5,-0.865160071,39.86604044,0.195925079 },
{ 1,143.5,-0.850915987,40.26827652,0.196281418 },
{ 1,144.5,-0.836961905,40.67443658,0.196591612 },
{ 1,145.5,-0.823315176,41.08443363,0.19685514 },
{ 1,146.5,-0.809992726,41.49817164,0.19707162 },
{ 1,147.5,-0.797011132,41.91554528,0.197240806 },
{ 1,148.5,-0.784386693,42.33643978,0.197362591 },
{ 1,149.5,-0.772135506,42.76073078,0.197437004 },
{ 1,150.5,-0.760273528,43.18828419,0.19746421 },
{ 1,151.5,-0.748815968,43.61895703,0.197444522 },
{ 1,152.5,-0.737780398,44.0525931,0.197378345 },
{ 1,153.5,-0.727181568,44.48903027,0.197266263 },
{ 1,154.5,-0.717035494,44.92809483,0.197108968 },
{ 1,155.5,-0.707358338,45.36960315,0.196907274 },
{ 1,156.5,-0.698166437,45.81336172,0.196662115 },
{ 1,157.5,-0.689476327,46.25916729,0.196374538 },
{ 1,158.5,-0.68130475,46.70680701,0.196045701 },
{ 1,159.5,-0.673668658,47.15605863,0.195676862 },
{ 1,160.5,-0.666585194,47.60669074,0.19526938 },
{ 1,161.5,-0.660069969,48.05846572,0.19482473 },
{ 1,162.5,-0.654142602,48.51113138,0.19434441 },
{ 1,163.5,-0.648819666,48.96443224,0.193830046 },
{ 1,164.5,-0.644118611,49.41810374,0.193283319 },
{ 1,165.5,-0.640056805,49.87187409,0.192705974 },
{ 1,166.5,-0.636651424,50.32546478,0.192099812 },
{ 1,167.5,-0.633919328,50.77859121,0.191466681 },
{ 1,168.5,-0.631876912,51.23096332,0.190808471 },
{ 1,169.5,-0.63053994,51.68228625,0.190127105 },
{ 1,170.5,-0.629923353,52.13226113,0.18942453 },
{ 1,171.5,-0.630041066,52.58058583,0.188702714 },
{ 1,172.5,-0.630905733,53.02695588,0.187963636 },
{ 1,173.5,-0.632528509,53.47106525,0.187209281 },
{ 1,174.5,-0.634918779,53.91260737,0.18644163 },
{ 1,175.5,-0.638083884,54.35127608,0.185662657 },
{ 1,176.5,-0.642028835,54.78676659,0.184874323 },
{ 1,177.5,-0.646756013,55.21877657,0.184078567 },
{ 1,178.5,-0.652262297,55.64701131,0.183277339 },
{ 1,179.5,-0.658551638,56.07116407,0.182472427 },
{ 1,180.5,-0.665609025,56.49095862,0.181665781 },
{ 1,181.5,-0.673425951,56.90610886,0.18085918 },
{ 1,182.5,-0.681987284,57.31634059,0.180054395 },
{ 1,183.5,-0.691273614,57.72138846,0.179253153 },
{ 1,184.5,-0.701261055,58.12099696,0.178457127 },
{ 1,185.5,-0.711921092,58.51492143,0.177667942 },
{ 1,186.5,-0.723218488,58.90293208,0.176887192 },
{ 1,187.5,-0.735121189,59.28479948,0.176116307 },
{ 1,188.5,-0.747580416,59.66032626,0.175356814 },
{ 1,189.5,-0.760550666,60.02931704,0.174610071 },
{ 1,190.5,-0.773984558,60.39158721,0.173877336 },
{ 1,191.5,-0.787817728,60.74698785,0.173159953 },
{ 1,192.5,-0.801993069,61.09536847,0.172459052 },
{ 1,193.5,-0.816446409,61.43660077,0.171775726 },
{ 1,194.5,-0.831110299,61.77057372,0.171110986 },
{ 1,195.5,-0.845914498,62.09719399,0.170465756 },
{ 1,196.5,-0.860786514,62.41638628,0.169840869 },
{ 1,197.5,-0.875652181,62.72809362,0.169237063 },
{ 1,198.5,-0.890436283,63.03227756,0.168654971 },
{ 1,199.5,-0.905063185,63.32891841,0.168095124 },
{ 1,200.5,-0.91945749,63.61801537,0.16755794 },
{ 1,201.5,-0.933544683,63.89958662,0.167043722 },
{ 1,202.5,-0.947251765,64.17366943,0.166552654 },
{ 1,203.5,-0.960507855,64.44032016,0.166084798 },
{ 1,204.5,-0.973244762,64.69961427,0.16564009 },
{ 1,205.5,-0.985397502,64.95164625,0.165218341 },
{ 1,206.5,-0.996904762,65.1965295,0.164819236 },
{ 1,207.5,-1.007705555,65.43440186,0.16444238 },
{ 1,208.5,-1.017756047,65.66540015,0.164087103 },
{ 1,209.5,-1.027002713,65.88970117,0.163752791 },
{ 1,210.5,-1.035402243,66.10749114,0.163438661 },
{ 1,211.5,-1.042916356,66.31897311,0.163143825 },
{ 1,212.5,-1.049511871,66.52436618,0.162867311 },
{ 1,213.5,-1.055160732,66.72390443,0.162608072 },
{ 1,214.5,-1.059840019,66.91783563,0.162365006 },
{ 1,215.5,-1.063531973,67.10641956,0.162136973 },
{ 1,216.5,-1.066224038,67.28992603,0.161922819 },
{ 1,217.5,-1.067908908,67.46863255,0.161721398 },
{ 1,218.5,-1.068589885,67.64281378,0.16153153 },
{ 1,219.5,-1.068261146,67.8127675,0.161352313 },
{ 1,220.5,-1.066933756,67.97877331,0.161182785 },
{ 1,221.5,-1.064620976,68.14111022,0.161022184 },
{ 1,222.5,-1.061341755,68.30004741,0.160869943 },
{ 1,223.5,-1.057116957,68.4558454,0.160725793 },
{ 1,224.5,-1.051988979,68.60872174,0.160589574 },
{ 1,225.5,-1.04599033,68.75889263,0.1604617 },
{ 1,226.5,-1.039168248,68.90653028,0.160342924 },
{ 1,227.5,-1.031579574,69.05176427,0.160234478 },
{ 1,228.5,-1.023291946,69.19467288,0.160138158 },
{ 1,229.5,-1.014385118,69.33527376,0.160056393 },
{ 1,230.5,-1.004952366,69.47351373,0.159992344 },
{ 1,231.5,-0.995101924,69.60925782,0.159949989 },
{ 1,232.5,-0.984958307,69.74227758,0.159934231 },
{ 1,233.5,-0.974663325,69.87223885,0.159951004 },
{ 1,234.5,-0.964376555,69.99868896,0.160007394 },
{ 1,235.5,-0.954274945,70.12104381,0.160111769 },
{ 1,236.5,-0.944551187,70.23857482,0.160273918 },
{ 1,237.5,-0.935410427,70.35039626,0.160505203 },
{ 1,238.5,-0.927059784,70.45546105,0.160818788 },
{ 1,239.5,-0.919718461,70.55252127,0.161229617 },
{ 1,240,-0.91648762,70.59761453,0.161476792 },
{ 2,0,1.509187507,3.39918645,0.142106724 },
{ 2,0.5,1.357944315,3.79752846,0.138075916 },
{ 2,1.5,1.105537708,4.544776513,0.131733888 },
{ 2,2.5,0.902596648,5.230584214,0.126892697 },
{ 2,3.5,0.734121414,5.859960798,0.123025182 },
{ 2,4.5,0.590235275,6.437587751,0.119840911 },
{ 2,5.5,0.464391566,6.967850457,0.117166868 },
{ 2,6.5,0.352164071,7.454854109,0.11489384 },
{ 2,7.5,0.250497889,7.902436186,0.112949644 },
{ 2,8.5,0.15724751,8.314178377,0.11128469 },
{ 2,9.5,0.070885725,8.693418423,0.109863709 },
{ 2,10.5,-0.00968493,9.043261854,0.10866078 },
{ 2,11.5,-0.085258,9.366593571,0.10765621 },
{ 2,12.5,-0.15640945,9.666089185,0.106834517 },
{ 2,13.5,-0.22355869,9.944226063,0.106183085 },
{ 2,14.5,-0.28701346,10.20329397,0.105691242 },
{ 2,15.5,-0.34699919,10.4454058,0.105349631 },
{ 2,16.5,-0.40368918,10.67250698,0.105149754 },
{ 2,17.5,-0.45721877,10.88638558,0.105083666 },
{ 2,18.5,-0.50770077,11.08868151,0.105143752 },
{ 2,19.5,-0.55523599,11.28089537,0.105322575 },
{ 2,20.5,-0.59992113,11.46439708,0.10561278 },
{ 2,21.5,-0.64185418,11.64043402,0.106007025 },
{ 2,22.5,-0.6811381,11.81013895,0.106497957 },
{ 2,23.5,-0.71788283,11.97453748,0.107078197 },
{ 2,24,-0.73533951,12.05503983,0.107399495 },
{ 2,24.5,-0.75220617,12.13455528,0.107740346 },
{ 2,25.5,-0.78423359,12.2910249,0.108477009 },
{ 2,26.5,-0.81409743,12.44469237,0.109280822 },
{ 2,27.5,-0.8419355,12.59622335,0.110144488 },
{ 2,28.5,-0.86788939,12.74620911,0.111060814 },
{ 2,29.5,-0.89210264,12.89517218,0.112022758 },
{ 2,30.5,-0.91471881,13.04357164,0.113023466 },
{ 2,31.5,-0.93587966,13.19180827,0.114056316 },
{ 2,32.5,-0.95572344,13.34022934,0.115114952 },
{ 2,33.5,-0.97438101,13.48913357,0.116193337 },
{ 2,34.5,-0.99198075,13.63877446,0.11728575 },
{ 2,35.5,-1.00864074,13.78936547,0.118386847 },
{ 2,36,-1.01665314,13.86507382,0.118939087 },
{ 2,36.5,-1.024471278,13.94108332,0.119491669 },
{ 2,37.5,-1.039573604,14.09407175,0.120595658 },
{ 2,38.5,-1.054039479,14.24844498,0.121694676 },
{ 2,39.5,-1.067946784,14.40429169,0.12278503 },
{ 2,40.5,-1.081374153,14.56167529,0.1238634 },
{ 2,41.5,-1.094381409,14.72064045,0.124926943 },
{ 2,42.5,-1.107021613,14.88121352,0.125973221 },
{ 2,43.5,-1.119338692,15.04340553,0.127000212 },
{ 2,44.5,-1.131367831,15.20721443,0.128006292 },
{ 2,45.5,-1.143135936,15.37262729,0.128990225 },
{ 2,46.5,-1.15466215,15.53962221,0.129951143 },
{ 2,47.5,-1.165958392,15.70817017,0.130888527 },
{ 2,48.5,-1.177029925,15.87823668,0.131802186 },
{ 2,49.5,-1.187871001,16.04978452,0.132692269 },
{ 2,50.5,-1.198484073,16.2227706,0.133559108 },
{ 2,51.5,-1.208853947,16.39715363,0.134403386 },
{ 2,52.5,-1.218965087,16.57289122,0.13522599 },
{ 2,53.5,-1.228798212,16.74994187,0.136028014 },
{ 2,54.5,-1.238330855,16.92826587,0.136810739 },
{ 2,55.5,-1.247537914,17.10782615,0.137575606 },
{ 2,56.5,-1.256392179,17.28858894,0.138324193 },
{ 2,57.5,-1.264864846,17.47052444,0.139058192 },
{ 2,58.5,-1.272926011,17.65360733,0.139779387 },
{ 2,59.5,-1.28054514,17.83781722,0.140489635 },
{ 2,60.5,-1.287691525,18.02313904,0.141190842 },
{ 2,61.5,-1.294332076,18.20956418,0.141884974 },
{ 2,62.5,-1.300441561,18.3970876,0.142573939 },
{ 2,63.5,-1.305989011,18.58571243,0.143259709 },
{ 2,64.5,-1.310946941,18.77544728,0.143944216 },
{ 2,65.5,-1.315289534,18.966307,0.144629359 },
{ 2,66.5,-1.318992925,19.15831267,0.14531699 },
{ 2,67.5,-1.322035315,19.35149163,0.146008903 },
{ 2,68.5,-1.324398133,19.54587708,0.146706813 },
{ 2,69.5,-1.326064539,19.74150854,0.147412363 },
{ 2,70.5,-1.327020415,19.93843145,0.148127109 },
{ 2,71.5,-1.327256387,20.13669623,0.148852482 },
{ 2,72.5,-1.326763834,20.33635961,0.149589838 },
{ 2,73.5,-1.325538668,20.53748298,0.1503404 },
{ 2,74.5,-1.323579654,20.74013277,0.151105277 },
{ 2,75.5,-1.320888012,20.94438028,0.151885464 },
{ 2,76.5,-1.317468695,21.15030093,0.152681819 },
{ 2,77.5,-1.313331446,21.35797332,0.15349505 },
{ 2,78.5,-1.308487081,21.56748045,0.154325756 },
{ 2,79.5,-1.302948173,21.77890902,0.155174414 },
{ 2,80.5,-1.296733913,21.99234686,0.15604132 },
{ 2,81.5,-1.289863329,22.20788541,0.156926667 },
{ 2,82.5,-1.282358762,22.4256177,0.157830504 },
{ 2,83.5,-1.274244931,22.64563824,0.158752743 },
{ 2,84.5,-1.265548787,22.86804258,0.159693163 },
{ 2,85.5,-1.256299378,23.09292679,0.16065141 },
{ 2,86.5,-1.24653066,23.32038549,0.161626956 },
{ 2,87.5,-1.236266832,23.55051871,0.162619308 },
{ 2,88.5,-1.225551344,23.78341652,0.1636276 },
{ 2,89.5,-1.214410914,24.01917703,0.1646511 },
{ 2,90.5,-1.202884389,24.25789074,0.165688808 },
{ 2,91.5,-1.191007906,24.49964778,0.166739662 },
{ 2,92.5,-1.178818621,24.74453536,0.167802495 },
{ 2,93.5,-1.166354376,24.99263735,0.168876037 },
{ 2,94.5,-1.153653688,25.24403371,0.169958922 },
{ 2,95.5,-1.140751404,25.49880264,0.171049756 },
{ 2,96.5,-1.127684095,25.7570168,0.172147043 },
{ 2,97.5,-1.114490244,26.01874261,0.173249185 },
{ 2,98.5,-1.101204848,26.28404312,0.174354569 },
{ 2,99.5,-1.087863413,26.55297507,0.175461512 },
{ 2,100.5,-1.074500927,26.82558904,0.176568284 },
{ 2,101.5,-1.061151213,27.1019295,0.177673124 },
{ 2,102.5,-1.047847141,27.38203422,0.178774242 },
{ 2,103.5,-1.034620551,27.66593402,0.179869829 },
{ 2,104.5,-1.021502197,27.9536524,0.180958063 },
{ 2,105.5,-1.008521695,28.24520531,0.182037118 },
{ 2,106.5,-0.995707494,28.54060085,0.183105172 },
{ 2,107.5,-0.983086844,28.83983907,0.18416041 },
{ 2,108.5,-0.970685789,29.14291171,0.185201039 },
{ 2,109.5,-0.958529157,29.44980208,0.186225287 },
{ 2,110.5,-0.946640568,29.76048479,0.187231416 },
{ 2,111.5,-0.935042447,30.0749257,0.188217723 },
{ 2,112.5,-0.923756041,30.39308176,0.18918255 },
{ 2,113.5,-0.912801445,30.71490093,0.190124286 },
{ 2,114.5,-0.902197638,31.0403221,0.191041375 },
{ 2,115.5,-0.891962513,31.36927506,0.191932319 },
{ 2,116.5,-0.882112919,31.7016805,0.192795682 },
{ 2,117.5,-0.872664706,32.03744999,0.193630095 },
{ 2,118.5,-0.863632768,32.37648607,0.19443426 },
{ 2,119.5,-0.855031092,32.71868225,0.195206948 },
{ 2,120.5,-0.846872805,33.06392318,0.195947008 },
{ 2,121.5,-0.839170224,33.4120847,0.196653365 },
{ 2,122.5,-0.831934903,33.76303402,0.197325023 },
{ 2,123.5,-0.825177688,34.1166299,0.197961065 },
{ 2,124.5,-0.818908758,34.47272283,0.198560655 },
{ 2,125.5,-0.813137675,34.83115524,0.199123037 },
{ 2,126.5,-0.807873433,35.19176177,0.199647538 },
{ 2,127.5,-0.803122613,35.55437176,0.200133598 },
{ 2,128.5,-0.79889771,35.91879976,0.200580618 },
{ 2,129.5,-0.795203499,36.28486194,0.200988216 },
{ 2,130.5,-0.792047959,36.65236365,0.201356017 },
{ 2,131.5,-0.789435274,37.02110818,0.201683791 },
{ 2,132.5,-0.787374433,37.39088668,0.201971282 },
{ 2,133.5,-0.785870695,37.76148905,0.202218375 },
{ 2,134.5,-0.784929893,38.1326991,0.202425006 },
{ 2,135.5,-0.784557605,38.50429603,0.202591183 },
{ 2,136.5,-0.78475917,38.87605489,0.20271698 },
{ 2,137.5,-0.785539703,39.24774707,0.202802535 },
{ 2,138.5,-0.786904102,39.61914076,0.202848049 },
{ 2,139.5,-0.788858208,39.98999994,0.202853758 },
{ 2,140.5,-0.791403051,40.36009244,0.202820053 },
{ 2,141.5,-0.794546352,40.72917544,0.202747236 },
{ 2,142.5,-0.79829102,41.09701099,0.202635758 },
{ 2,143.5,-0.802640891,41.46335907,0.202486098 },
{ 2,144.5,-0.807599577,41.82797963,0.202298783 },
{ 2,145.5,-0.813170461,42.19063313,0.202074385 },
{ 2,146.5,-0.819356692,42.55108107,0.201813521 },
{ 2,147.5,-0.826161176,42.90908653,0.201516851 },
{ 2,148.5,-0.833586038,43.2644155,0.201185082 },
{ 2,149.5,-0.841634949,43.61683402,0.200818928 },
{ 2,150.5,-0.850307441,43.9661169,0.200419208 },
{ 2,151.5,-0.859607525,44.31203579,0.199986681 },
{ 2,152.5,-0.869534339,44.65437319,0.199522233 },
{ 2,153.5,-0.880088651,44.99291356,0.199026736 },
{ 2,154.5,-0.891270585,45.32744704,0.198501096 },
{ 2,155.5,-0.903079458,45.65777013,0.197946255 },
{ 2,156.5,-0.915513542,45.98368656,0.197363191 },
{ 2,157.5,-0.928569454,46.30500858,0.196752931 },
{ 2,158.5,-0.942245864,46.62155183,0.196116472 },
{ 2,159.5,-0.956537923,46.93314404,0.19545489 },
{ 2,160.5,-0.971440492,47.23962058,0.194769279 },
{ 2,161.5,-0.986947308,47.54082604,0.194060758 },
{ 2,162.5,-1.003050887,47.83661466,0.193330477 },
{ 2,163.5,-1.019742425,48.12685082,0.192579614 },
{ 2,164.5,-1.037011698,48.41140938,0.191809374 },
{ 2,165.5,-1.054846957,48.69017613,0.191020995 },
{ 2,166.5,-1.073234825,48.9630481,0.190215739 },
{ 2,167.5,-1.092160195,49.22993391,0.189394901 },
{ 2,168.5,-1.111606122,49.49075409,0.188559804 },
{ 2,169.5,-1.131553723,49.74544132,0.187711798 },
{ 2,170.5,-1.151982079,49.99394068,0.186852266 },
{ 2,171.5,-1.172868141,50.23620985,0.185982617 },
{ 2,172.5,-1.19418462,50.47222213,0.185104331 },
{ 2,173.5,-1.215907492,50.70195581,0.184218803 },
{ 2,174.5,-1.238005268,50.92540942,0.183327556 },
{ 2,175.5,-1.260445591,51.14259229,0.182432113 },
{ 2,176.5,-1.283193626,51.3535268,0.181534018 },
{ 2,177.5,-1.306212032,51.55824831,0.180634839 },
{ 2,178.5,-1.329460945,51.75680513,0.179736168 },
{ 2,179.5,-1.35289798,51.94925841,0.178839614 },
{ 2,180.5,-1.376478254,52.13568193,0.177946804 },
{ 2,181.5,-1.400154426,52.31616197,0.177059379 },
{ 2,182.5,-1.423876772,52.49079703,0.17617899 },
{ 2,183.5,-1.447593267,52.65969757,0.175307296 },
{ 2,184.5,-1.471249702,52.82298572,0.174445958 },
{ 2,185.5,-1.494789826,52.9807949,0.173596636 },
{ 2,186.5,-1.518155513,53.13326946,0.172760982 },
{ 2,187.5,-1.541286949,53.28056425,0.17194064 },
{ 2,188.5,-1.564122852,53.42284417,0.171137232 },
{ 2,189.5,-1.586600712,53.5602837,0.170352363 },
{ 2,190.5,-1.608657054,53.69306637,0.169587605 },
{ 2,191.5,-1.630227728,53.82138422,0.168844497 },
{ 2,192.5,-1.651248208,53.94543725,0.168124538 },
{ 2,193.5,-1.67165392,54.06543278,0.167429179 },
{ 2,194.5,-1.691380583,54.18158486,0.166759816 },
{ 2,195.5,-1.710364557,54.29411356,0.166117788 },
{ 2,196.5,-1.728543207,54.40324431,0.165504365 },
{ 2,197.5,-1.745855274,54.50920717,0.164920747 },
{ 2,198.5,-1.762241248,54.61223603,0.164368054 },
{ 2,199.5,-1.777643747,54.71256787,0.16384732 },
{ 2,200.5,-1.792007891,54.81044184,0.163359491 },
{ 2,201.5,-1.805281675,54.90609842,0.162905415 },
{ 2,202.5,-1.817416335,54.99977846,0.162485839 },
{ 2,203.5,-1.828366707,55.09172217,0.162101402 },
{ 2,204.5,-1.838091576,55.18216811,0.161752634 },
{ 2,205.5,-1.846554015,55.271352,0.161439944 },
{ 2,206.5,-1.853721704,55.35950558,0.161163623 },
{ 2,207.5,-1.859567242,55.44685531,0.160923833 },
{ 2,208.5,-1.864068443,55.53362107,0.160720609 },
{ 2,209.5,-1.86720861,55.62001464,0.16055385 },
{ 2,210.5,-1.8689768,55.70623826,0.160423319 },
{ 2,211.5,-1.869371157,55.79247939,0.160328578 },
{ 2,212.5,-1.868386498,55.87892356,0.160269232 },
{ 2,213.5,-1.866033924,55.96573022,0.160244549 },
{ 2,214.5,-1.862327775,56.05304601,0.160253714 },
{ 2,215.5,-1.857289195,56.14099882,0.160295765 },
{ 2,216.5,-1.850946286,56.22969564,0.16036959 },
{ 2,217.5,-1.84333425,56.3192203,0.16047393 },
{ 2,218.5,-1.834495505,56.40963105,0.160607377 },
{ 2,219.5,-1.824479785,56.50095811,0.16076838 },
{ 2,220.5,-1.813344222,56.59320107,0.160955249 },
{ 2,221.5,-1.801153404,56.68632619,0.161166157 },
{ 2,222.5,-1.787979408,56.78026364,0.161399151 },
{ 2,223.5,-1.773901816,56.87490465,0.161652158 },
{ 2,224.5,-1.759007704,56.97009856,0.161922998 },
{ 2,225.5,-1.743391606,57.06564989,0.162209399 },
{ 2,226.5,-1.72715546,57.16131528,0.162509006 },
{ 2,227.5,-1.710410733,57.25679821,0.162819353 },
{ 2,228.5,-1.693267093,57.35175792,0.163138124 },
{ 2,229.5,-1.67585442,57.44578172,0.163462715 },
{ 2,230.5,-1.658302847,57.53840429,0.163790683 },
{ 2,231.5,-1.640747464,57.62910094,0.164119574 },
{ 2,232.5,-1.623332891,57.7172758,0.164446997 },
{ 2,233.5,-1.606209374,57.80226553,0.164770638 },
{ 2,234.5,-1.589533346,57.88333502,0.165088289 },
{ 2,235.5,-1.573467222,57.95967458,0.165397881 },
{ 2,236.5,-1.558179166,58.0303973,0.165697507 },
{ 2,237.5,-1.543846192,58.09453209,0.165985386 },
{ 2,238.5,-1.530642461,58.15103575,0.166260109 },
{ 2,239.5,-1.518754013,58.1987714,0.16652037 },
{ 2,240,-1.51336185,58.21897289,0.166644749 }
                                          };

        public static double[,] CDCLgthAge = {
                                                 { 1,0,1.267004226,49.98888408,0.053112191 },
{ 1,0.5,0.511237696,52.6959753,0.048692684 },
{ 1,1.5,-0.45224446,56.62842855,0.04411683 },
{ 1,2.5,-0.990594599,59.60895343,0.041795583 },
{ 1,3.5,-1.285837689,62.07700027,0.040454126 },
{ 1,4.5,-1.43031238,64.2168641,0.039633879 },
{ 1,5.5,-1.47657547,66.1253149,0.039123813 },
{ 1,6.5,-1.456837849,67.8601799,0.038811994 },
{ 1,7.5,-1.391898768,69.45908458,0.038633209 },
{ 1,8.5,-1.29571459,70.94803912,0.038546833 },
{ 1,9.5,-1.177919048,72.34586111,0.038526262 },
{ 1,10.5,-1.045326049,73.6666541,0.038553387 },
{ 1,11.5,-0.902800887,74.92129717,0.038615501 },
{ 1,12.5,-0.753908107,76.11837536,0.038703461 },
{ 1,13.5,-0.601263523,77.26479911,0.038810557 },
{ 1,14.5,-0.446805039,78.36622309,0.038931784 },
{ 1,15.5,-0.291974772,79.4273405,0.039063356 },
{ 1,16.5,-0.13784767,80.45209492,0.039202382 },
{ 1,17.5,0.014776155,81.44383603,0.039346629 },
{ 1,18.5,0.165304169,82.40543643,0.039494365 },
{ 1,19.5,0.313301809,83.33938063,0.039644238 },
{ 1,20.5,0.458455471,84.24783394,0.039795189 },
{ 1,21.5,0.600544631,85.13269658,0.039946388 },
{ 1,22.5,0.739438953,85.9956488,0.040097181 },
{ 1,23.5,0.875000447,86.8381751,0.04024706 },
{ 1,24.5,1.00720807,87.66160934,0.040395626 },
{ 1,25.5,0.837251351,88.45247282,0.040577525 },
{ 1,26.5,0.681492975,89.22326434,0.040723122 },
{ 1,27.5,0.538779654,89.97549228,0.040833194 },
{ 1,28.5,0.407697153,90.71040853,0.040909059 },
{ 1,29.5,0.286762453,91.42907762,0.040952433 },
{ 1,30.5,0.174489485,92.13242379,0.04096533 },
{ 1,31.5,0.069444521,92.82127167,0.040949976 },
{ 1,32.5,-0.029720564,93.49637946,0.040908737 },
{ 1,33.5,-0.124251789,94.15846546,0.040844062 },
{ 1,34.5,-0.215288396,94.80822923,0.040758431 },
{ 1,35.5,-0.30385434,95.44636981,0.040654312 },
{ 1,36.5,-0.390918369,96.07359106,0.04053412 },
{ 2,0,-1.295960857,49.28639612,0.05008556 },
{ 2,0.5,-0.809249882,51.68358057,0.046818545 },
{ 2,1.5,-0.050782985,55.28612813,0.0434439 },
{ 2,2.5,0.476851407,58.09381906,0.041716103 },
{ 2,3.5,0.843299612,60.45980763,0.040705173 },
{ 2,4.5,1.097562257,62.53669656,0.040079765 },
{ 2,5.5,1.272509641,64.40632762,0.039686845 },
{ 2,6.5,1.390428859,66.11841553,0.039444555 },
{ 2,7.5,1.466733925,67.70574419,0.039304738 },
{ 2,8.5,1.512301976,69.19123614,0.03923711 },
{ 2,9.5,1.534950767,70.59163924,0.039221665 },
{ 2,10.5,1.540390875,71.91961673,0.039244672 },
{ 2,11.5,1.532852892,73.1850104,0.03929642 },
{ 2,12.5,1.51550947,74.39564379,0.039369875 },
{ 2,13.5,1.490765028,75.5578544,0.039459832 },
{ 2,14.5,1.460458255,76.67685871,0.039562382 },
{ 2,15.5,1.426006009,77.75700986,0.039674542 },
{ 2,16.5,1.388507095,78.80198406,0.03979401 },
{ 2,17.5,1.348818127,79.81491852,0.039918994 },
{ 2,18.5,1.307609654,80.79851532,0.040048084 },
{ 2,19.5,1.265408149,81.75512092,0.040180162 },
{ 2,20.5,1.222627732,82.6867881,0.04031434 },
{ 2,21.5,1.179594365,83.59532461,0.040449904 },
{ 2,22.5,1.136564448,84.48233206,0.040586283 },
{ 2,23.5,1.093731947,85.34923624,0.040723015 },
{ 2,24.5,1.051272912,86.1973169,0.040859727 },
{ 2,25.5,1.041951175,87.09026318,0.041142161 },
{ 2,26.5,1.012592236,87.95714182,0.041349399 },
{ 2,27.5,0.970541909,88.7960184,0.041500428 },
{ 2,28.5,0.921129988,89.6055115,0.041610508 },
{ 2,29.5,0.868221392,90.38476689,0.041691761 },
{ 2,30.5,0.81454413,91.13341722,0.04175368 },
{ 2,31.5,0.761957977,91.8515436,0.041803562 },
{ 2,32.5,0.711660228,92.5396352,0.041846882 },
{ 2,33.5,0.664323379,93.19854429,0.041887626 },
{ 2,34.5,0.620285102,93.82945392,0.041928568 },
{ 2,35.5,0.57955631,94.43382278,0.041971514 },
{ 2,36.5,0.54198094,95.01335709,0.042017509 }
                                          };

        public static double[,] CDCHtAge = {
                                               { 1,24,0.941523967,86.45220101,0.040321528 },
{ 1,24.5,1.00720807,86.86160934,0.040395626 },
{ 1,25.5,0.837251351,87.65247282,0.040577525 },
{ 1,26.5,0.681492975,88.42326434,0.040723122 },
{ 1,27.5,0.538779654,89.17549228,0.040833194 },
{ 1,28.5,0.407697153,89.91040853,0.040909059 },
{ 1,29.5,0.286762453,90.62907762,0.040952433 },
{ 1,30.5,0.174489485,91.33242379,0.04096533 },
{ 1,31.5,0.069444521,92.02127167,0.040949976 },
{ 1,32.5,-0.029720564,92.69637946,0.040908737 },
{ 1,33.5,-0.124251789,93.35846546,0.040844062 },
{ 1,34.5,-0.215288396,94.00822923,0.040758431 },
{ 1,35.5,-0.30385434,94.64636981,0.040654312 },
{ 1,36.5,-0.390918369,95.27359106,0.04053412 },
{ 1,37.5,-0.254801167,95.91474929,0.040572876 },
{ 1,38.5,-0.125654535,96.54734328,0.04061691 },
{ 1,39.5,-0.00316735,97.17191309,0.040666414 },
{ 1,40.5,0.11291221,97.78897727,0.040721467 },
{ 1,41.5,0.222754969,98.3990283,0.040782045 },
{ 1,42.5,0.326530126,99.00254338,0.040848042 },
{ 1,43.5,0.42436156,99.599977,0.040919281 },
{ 1,44.5,0.516353108,100.191764,0.040995524 },
{ 1,45.5,0.602595306,100.7783198,0.041076485 },
{ 1,46.5,0.683170764,101.3600411,0.041161838 },
{ 1,47.5,0.758158406,101.9373058,0.041251224 },
{ 1,48.5,0.827636736,102.5104735,0.041344257 },
{ 1,49.5,0.891686306,103.0798852,0.041440534 },
{ 1,50.5,0.95039153,103.645864,0.041539635 },
{ 1,51.5,1.003830006,104.208713,0.041641136 },
{ 1,52.5,1.05213569,104.7687256,0.041744602 },
{ 1,53.5,1.0953669,105.3261638,0.041849607 },
{ 1,54.5,1.133652119,105.8812823,0.041955723 },
{ 1,55.5,1.167104213,106.4343146,0.042062532 },
{ 1,56.5,1.195845353,106.9854769,0.042169628 },
{ 1,57.5,1.220004233,107.534968,0.042276619 },
{ 1,58.5,1.239715856,108.0829695,0.042383129 },
{ 1,59.5,1.255121285,108.6296457,0.042488804 },
{ 1,60.5,1.266367398,109.1751441,0.042593311 },
{ 1,61.5,1.273606657,109.7195954,0.042696342 },
{ 1,62.5,1.276996893,110.2631136,0.042797615 },
{ 1,63.5,1.276701119,110.8057967,0.042896877 },
{ 1,64.5,1.272887366,111.3477265,0.042993904 },
{ 1,65.5,1.265728536,111.8889694,0.043088503 },
{ 1,66.5,1.255402281,112.4295761,0.043180513 },
{ 1,67.5,1.242090871,112.9695827,0.043269806 },
{ 1,68.5,1.225981067,113.5090108,0.043356287 },
{ 1,69.5,1.207263978,114.0478678,0.043439893 },
{ 1,70.5,1.186140222,114.5861486,0.043520597 },
{ 1,71.5,1.162796198,115.1238315,0.043598407 },
{ 1,72.5,1.137442868,115.6608862,0.043673359 },
{ 1,73.5,1.110286487,116.1972691,0.043745523 },
{ 1,74.5,1.081536236,116.732925,0.043815003 },
{ 1,75.5,1.05140374,117.2677879,0.043881929 },
{ 1,76.5,1.020102497,117.8017819,0.043946461 },
{ 1,77.5,0.987847213,118.3348215,0.044008785 },
{ 1,78.5,0.954853043,118.8668123,0.044069112 },
{ 1,79.5,0.921334742,119.397652,0.044127675 },
{ 1,80.5,0.887505723,119.9272309,0.044184725 },
{ 1,81.5,0.85357703,120.455433,0.044240532 },
{ 1,82.5,0.819756239,120.9821362,0.044295379 },
{ 1,83.5,0.786246296,121.5072136,0.044349559 },
{ 1,84.5,0.753244292,122.0305342,0.044403374 },
{ 1,85.5,0.720940222,122.5519634,0.04445713 },
{ 1,86.5,0.689515708,123.0713645,0.044511135 },
{ 1,87.5,0.659142731,123.588599,0.044565693 },
{ 1,88.5,0.629997853,124.1035312,0.044621104 },
{ 1,89.5,0.602203984,124.6160161,0.044677662 },
{ 1,90.5,0.575908038,125.1259182,0.044735646 },
{ 1,91.5,0.55123134,125.6331012,0.044795322 },
{ 1,92.5,0.528279901,126.1374319,0.044856941 },
{ 1,93.5,0.507143576,126.6387804,0.04492073 },
{ 1,94.5,0.487895344,127.1370217,0.044986899 },
{ 1,95.5,0.470590753,127.6320362,0.045055632 },
{ 1,96.5,0.455267507,128.1237104,0.045127088 },
{ 1,97.5,0.441945241,128.6119383,0.045201399 },
{ 1,98.5,0.430625458,129.096622,0.045278671 },
{ 1,99.5,0.421291648,129.5776723,0.045358979 },
{ 1,100.5,0.413909588,130.0550101,0.045442372 },
{ 1,101.5,0.408427813,130.5285669,0.045528869 },
{ 1,102.5,0.404778262,130.9982857,0.045618459 },
{ 1,103.5,0.402877077,131.4641218,0.045711105 },
{ 1,104.5,0.402625561,131.9260439,0.045806742 },
{ 1,105.5,0.40391127,132.3840348,0.045905281 },
{ 1,106.5,0.406609232,132.838092,0.046006604 },
{ 1,107.5,0.410583274,133.2882291,0.046110573 },
{ 1,108.5,0.415687443,133.7344759,0.046217028 },
{ 1,109.5,0.421767514,134.1768801,0.04632579 },
{ 1,110.5,0.428662551,134.6155076,0.046436662 },
{ 1,111.5,0.436206531,135.0504433,0.04654943 },
{ 1,112.5,0.44423,135.4817925,0.046663871 },
{ 1,113.5,0.45256176,135.9096813,0.046779748 },
{ 1,114.5,0.461030578,136.3342577,0.046896817 },
{ 1,115.5,0.469466904,136.7556923,0.047014827 },
{ 1,116.5,0.477704608,137.1741794,0.047133525 },
{ 1,117.5,0.48558272,137.5899378,0.047252654 },
{ 1,118.5,0.492947182,138.0032114,0.047371961 },
{ 1,119.5,0.499652617,138.4142703,0.047491194 },
{ 1,120.5,0.505564115,138.8234114,0.047610108 },
{ 1,121.5,0.510559047,139.2309592,0.047728463 },
{ 1,122.5,0.514528903,139.6372663,0.04784603 },
{ 1,123.5,0.517381177,140.042714,0.047962592 },
{ 1,124.5,0.519041285,140.4477127,0.048077942 },
{ 1,125.5,0.519454524,140.8527022,0.048191889 },
{ 1,126.5,0.518588072,141.2581515,0.048304259 },
{ 1,127.5,0.516433004,141.6645592,0.048414893 },
{ 1,128.5,0.513006312,142.072452,0.048523648 },
{ 1,129.5,0.508352901,142.4823852,0.048630402 },
{ 1,130.5,0.502547502,142.8949403,0.04873505 },
{ 1,131.5,0.495696454,143.3107241,0.048837504 },
{ 1,132.5,0.487939275,143.7303663,0.048937694 },
{ 1,133.5,0.479449924,144.1545167,0.049035564 },
{ 1,134.5,0.470437652,144.5838414,0.049131073 },
{ 1,135.5,0.461147305,145.0190192,0.049224189 },
{ 1,136.5,0.451858946,145.4607359,0.049314887 },
{ 1,137.5,0.442886661,145.9096784,0.049403145 },
{ 1,138.5,0.434576385,146.3665278,0.049488934 },
{ 1,139.5,0.427302633,146.8319513,0.049572216 },
{ 1,140.5,0.421464027,147.3065929,0.049652935 },
{ 1,141.5,0.417477538,147.7910635,0.049731004 },
{ 1,142.5,0.415771438,148.2859294,0.0498063 },
{ 1,143.5,0.416777012,148.7917006,0.04987865 },
{ 1,144.5,0.420919142,149.3088178,0.049947823 },
{ 1,145.5,0.428606007,149.8376391,0.050013518 },
{ 1,146.5,0.440218167,150.3784267,0.050075353 },
{ 1,147.5,0.456097443,150.9313331,0.050132858 },
{ 1,148.5,0.476536014,151.4963887,0.050185471 },
{ 1,149.5,0.501766234,152.0734897,0.050232532 },
{ 1,150.5,0.531951655,152.6623878,0.050273285 },
{ 1,151.5,0.567179725,153.2626819,0.050306885 },
{ 1,152.5,0.607456565,153.8738124,0.050332406 },
{ 1,153.5,0.652704121,154.495058,0.05034886 },
{ 1,154.5,0.702759868,155.1255365,0.050355216 },
{ 1,155.5,0.757379106,155.7642086,0.050350423 },
{ 1,156.5,0.816239713,156.4098858,0.050333444 },
{ 1,157.5,0.878947416,157.0612415,0.050303283 },
{ 1,158.5,0.945053486,157.7168289,0.050259018 },
{ 1,159.5,1.014046108,158.3750929,0.050199837 },
{ 1,160.5,1.085383319,159.034399,0.050125062 },
{ 1,161.5,1.158487278,159.6930501,0.05003418 },
{ 1,162.5,1.232768816,160.3493168,0.049926861 },
{ 1,163.5,1.307628899,161.0014586,0.049802977 },
{ 1,164.5,1.382473225,161.6477515,0.04966261 },
{ 1,165.5,1.456720479,162.2865119,0.049506051 },
{ 1,166.5,1.529810247,162.9161202,0.049333801 },
{ 1,167.5,1.601219573,163.535045,0.049146553 },
{ 1,168.5,1.670433444,164.1418486,0.04894519 },
{ 1,169.5,1.736995571,164.7352199,0.048730749 },
{ 1,170.5,1.800483802,165.3139755,0.048504404 },
{ 1,171.5,1.860518777,165.8770715,0.048267442 },
{ 1,172.5,1.916765525,166.4236087,0.04802123 },
{ 1,173.5,1.968934444,166.9528354,0.047767192 },
{ 1,174.5,2.016781776,167.4641466,0.047506783 },
{ 1,175.5,2.060109658,167.9570814,0.047241456 },
{ 1,176.5,2.098765817,168.4313175,0.04697265 },
{ 1,177.5,2.132642948,168.8866644,0.046701759 },
{ 1,178.5,2.16167779,169.3230548,0.046430122 },
{ 1,179.5,2.185849904,169.7405351,0.046159004 },
{ 1,180.5,2.205180153,170.139255,0.045889585 },
{ 1,181.5,2.219728869,170.5194567,0.045622955 },
{ 1,182.5,2.2295937,170.881464,0.045360101 },
{ 1,183.5,2.234907144,171.2256717,0.045101913 },
{ 1,184.5,2.235833767,171.5525345,0.044849174 },
{ 1,185.5,2.232567138,171.8625576,0.044602566 },
{ 1,186.5,2.2253265,172.1562865,0.044362674 },
{ 1,187.5,2.214353232,172.4342983,0.044129985 },
{ 1,188.5,2.199905902,172.6971935,0.043904897 },
{ 1,189.5,2.182262864,172.9455898,0.043687723 },
{ 1,190.5,2.161704969,173.180112,0.043478698 },
{ 1,191.5,2.138524662,173.4013896,0.043277987 },
{ 1,192.5,2.113023423,173.6100518,0.043085685 },
{ 1,193.5,2.085490286,173.8067179,0.042901835 },
{ 1,194.5,2.0562195,173.9919998,0.042726424 },
{ 1,195.5,2.025496648,174.1664951,0.042559396 },
{ 1,196.5,1.993598182,174.3307855,0.042400652 },
{ 1,197.5,1.960789092,174.4854344,0.042250063 },
{ 1,198.5,1.927320937,174.6309856,0.042107465 },
{ 1,199.5,1.89343024,174.7679617,0.041972676 },
{ 1,200.5,1.859337259,174.8968634,0.041845488 },
{ 1,201.5,1.825245107,175.0181691,0.041725679 },
{ 1,202.5,1.791339209,175.1323345,0.041613015 },
{ 1,203.5,1.757787065,175.2397926,0.041507249 },
{ 1,204.5,1.724738292,175.340954,0.041408129 },
{ 1,205.5,1.692324905,175.4362071,0.041315398 },
{ 1,206.5,1.660661815,175.5259191,0.041228796 },
{ 1,207.5,1.629847495,175.6104358,0.04114806 },
{ 1,208.5,1.599964788,175.690083,0.041072931 },
{ 1,209.5,1.571081817,175.7651671,0.04100315 },
{ 1,210.5,1.543252982,175.8359757,0.040938463 },
{ 1,211.5,1.516519998,175.9027788,0.040878617 },
{ 1,212.5,1.490912963,175.9658293,0.040823368 },
{ 1,213.5,1.466451429,176.0253641,0.040772475 },
{ 1,214.5,1.44314546,176.081605,0.040725706 },
{ 1,215.5,1.420996665,176.1347593,0.040682834 },
{ 1,216.5,1.399999187,176.1850208,0.04064364 },
{ 1,217.5,1.380140651,176.2325707,0.040607913 },
{ 1,218.5,1.361403047,176.2775781,0.040575448 },
{ 1,219.5,1.343763564,176.3202008,0.040546051 },
{ 1,220.5,1.327195355,176.3605864,0.040519532 },
{ 1,221.5,1.311668242,176.3988725,0.040495713 },
{ 1,222.5,1.297149359,176.4351874,0.040474421 },
{ 1,223.5,1.283603728,176.469651,0.040455493 },
{ 1,224.5,1.270994782,176.5023751,0.040438773 },
{ 1,225.5,1.25928483,176.533464,0.040424111 },
{ 1,226.5,1.248435461,176.5630153,0.040411366 },
{ 1,227.5,1.23840791,176.5911197,0.040400405 },
{ 1,228.5,1.229163362,176.6178621,0.040391101 },
{ 1,229.5,1.220663228,176.6433219,0.040383334 },
{ 1,230.5,1.212869374,176.6675729,0.04037699 },
{ 1,231.5,1.20574431,176.6906844,0.040371962 },
{ 1,232.5,1.199251356,176.712721,0.040368149 },
{ 1,233.5,1.19335477,176.733743,0.040365456 },
{ 1,234.5,1.188019859,176.753807,0.040363795 },
{ 1,235.5,1.183213059,176.7729657,0.04036308 },
{ 1,236.5,1.178901998,176.7912687,0.040363233 },
{ 1,237.5,1.175055543,176.8087622,0.040364179 },
{ 1,238.5,1.171643828,176.8254895,0.04036585 },
{ 1,239.5,1.16863827,176.8414914,0.04036818 },
{ 1,240,1.167279219,176.8492322,0.040369574 },
{ 2,24,1.07244896,84.97555512,0.040791394 },
{ 2,24.5,1.051272912,85.3973169,0.040859727 },
{ 2,25.5,1.041951175,86.29026318,0.041142161 },
{ 2,26.5,1.012592236,87.15714182,0.041349399 },
{ 2,27.5,0.970541909,87.9960184,0.041500428 },
{ 2,28.5,0.921129988,88.8055115,0.041610508 },
{ 2,29.5,0.868221392,89.58476689,0.041691761 },
{ 2,30.5,0.81454413,90.33341722,0.04175368 },
{ 2,31.5,0.761957977,91.0515436,0.041803562 },
{ 2,32.5,0.711660228,91.7396352,0.041846882 },
{ 2,33.5,0.664323379,92.39854429,0.041887626 },
{ 2,34.5,0.620285102,93.02945392,0.041928568 },
{ 2,35.5,0.57955631,93.63382278,0.041971514 },
{ 2,36.5,0.54198094,94.21335709,0.042017509 },
{ 2,37.5,0.511429832,94.79643239,0.042104522 },
{ 2,38.5,0.482799937,95.37391918,0.042199507 },
{ 2,39.5,0.455521041,95.94692677,0.042300333 },
{ 2,40.5,0.429150288,96.51644912,0.042405225 },
{ 2,41.5,0.403351725,97.08337211,0.042512706 },
{ 2,42.5,0.377878239,97.6484807,0.042621565 },
{ 2,43.5,0.352555862,98.21246579,0.042730809 },
{ 2,44.5,0.327270297,98.77593069,0.042839638 },
{ 2,45.5,0.301955463,99.33939735,0.042947412 },
{ 2,46.5,0.276583851,99.9033122,0.043053626 },
{ 2,47.5,0.251158446,100.4680516,0.043157889 },
{ 2,48.5,0.225705996,101.033927,0.043259907 },
{ 2,49.5,0.20027145,101.6011898,0.043359463 },
{ 2,50.5,0.174913356,102.1700358,0.043456406 },
{ 2,51.5,0.149700081,102.7406094,0.043550638 },
{ 2,52.5,0.12470671,103.3130077,0.043642107 },
{ 2,53.5,0.100012514,103.8872839,0.043730791 },
{ 2,54.5,0.075698881,104.4634511,0.043816701 },
{ 2,55.5,0.051847635,105.0414853,0.043899867 },
{ 2,56.5,0.02853967,105.6213287,0.043980337 },
{ 2,57.5,0.005853853,106.2028921,0.044058171 },
{ 2,58.5,-0.016133871,106.7860583,0.04413344 },
{ 2,59.5,-0.037351181,107.3706841,0.044206218 },
{ 2,60.5,-0.057729947,107.9566031,0.044276588 },
{ 2,61.5,-0.077206672,108.5436278,0.044344632 },
{ 2,62.5,-0.09572283,109.1315521,0.044410436 },
{ 2,63.5,-0.113225128,109.7201531,0.044474084 },
{ 2,64.5,-0.129665689,110.3091934,0.044535662 },
{ 2,65.5,-0.145002179,110.8984228,0.044595254 },
{ 2,66.5,-0.159197885,111.4875806,0.044652942 },
{ 2,67.5,-0.172221748,112.0763967,0.044708809 },
{ 2,68.5,-0.184048358,112.6645943,0.044762936 },
{ 2,69.5,-0.194660215,113.2518902,0.044815402 },
{ 2,70.5,-0.204030559,113.8380006,0.044866288 },
{ 2,71.5,-0.212174408,114.4226317,0.044915672 },
{ 2,72.5,-0.219069129,115.0054978,0.044963636 },
{ 2,73.5,-0.224722166,115.5863089,0.045010259 },
{ 2,74.5,-0.229140412,116.1647782,0.045055624 },
{ 2,75.5,-0.232335686,116.7406221,0.045099817 },
{ 2,76.5,-0.234324563,117.3135622,0.045142924 },
{ 2,77.5,-0.235128195,117.8833259,0.045185036 },
{ 2,78.5,-0.234772114,118.4496481,0.045226249 },
{ 2,79.5,-0.233286033,119.0122722,0.045266662 },
{ 2,80.5,-0.230703633,119.5709513,0.045306383 },
{ 2,81.5,-0.227062344,120.1254495,0.045345524 },
{ 2,82.5,-0.222403111,120.6755427,0.045384203 },
{ 2,83.5,-0.216770161,121.22102,0.045422551 },
{ 2,84.5,-0.210210748,121.7616844,0.045460702 },
{ 2,85.5,-0.202774891,122.2973542,0.045498803 },
{ 2,86.5,-0.194515104,122.827864,0.045537012 },
{ 2,87.5,-0.185486099,123.3530652,0.045575495 },
{ 2,88.5,-0.175744476,123.8728276,0.045614432 },
{ 2,89.5,-0.165348396,124.38704,0.045654016 },
{ 2,90.5,-0.15435722,124.8956114,0.04569445 },
{ 2,91.5,-0.142831123,125.398472,0.045735953 },
{ 2,92.5,-0.130830669,125.895574,0.045778759 },
{ 2,93.5,-0.118416354,126.3868929,0.045823114 },
{ 2,94.5,-0.105648092,126.8724284,0.04586928 },
{ 2,95.5,-0.092584657,127.3522056,0.045917535 },
{ 2,96.5,-0.079283065,127.8262759,0.045968169 },
{ 2,97.5,-0.065797888,128.2947187,0.04602149 },
{ 2,98.5,-0.0521805,128.757642,0.046077818 },
{ 2,99.5,-0.03847825,129.2151839,0.046137487 },
{ 2,100.5,-0.024733545,129.6675143,0.046200842 },
{ 2,101.5,-0.010982868,130.1148354,0.04626824 },
{ 2,102.5,0.002744306,130.5573839,0.046340046 },
{ 2,103.5,0.016426655,130.995432,0.046416629 },
{ 2,104.5,0.030052231,131.4292887,0.046498361 },
{ 2,105.5,0.043619747,131.8593015,0.046585611 },
{ 2,106.5,0.05713988,132.2858574,0.046678741 },
{ 2,107.5,0.070636605,132.7093845,0.046778099 },
{ 2,108.5,0.08414848,133.1303527,0.04688401 },
{ 2,109.5,0.097729873,133.5492749,0.046996769 },
{ 2,110.5,0.111452039,133.9667073,0.047116633 },
{ 2,111.5,0.125404005,134.3832499,0.047243801 },
{ 2,112.5,0.13969316,134.7995463,0.047378413 },
{ 2,113.5,0.154445482,135.2162826,0.047520521 },
{ 2,114.5,0.169805275,135.634186,0.047670085 },
{ 2,115.5,0.185934346,136.0540223,0.047826946 },
{ 2,116.5,0.203010488,136.4765925,0.04799081 },
{ 2,117.5,0.2212252,136.9027281,0.048161228 },
{ 2,118.5,0.240780542,137.3332846,0.04833757 },
{ 2,119.5,0.261885086,137.7691339,0.048519011 },
{ 2,120.5,0.284748919,138.2111552,0.048704503 },
{ 2,121.5,0.309577733,138.6602228,0.048892759 },
{ 2,122.5,0.336566048,139.1171933,0.049082239 },
{ 2,123.5,0.365889711,139.5828898,0.049271137 },
{ 2,124.5,0.397699038,140.0580848,0.049457371 },
{ 2,125.5,0.432104409,140.5434787,0.049638596 },
{ 2,126.5,0.46917993,141.0396832,0.049812203 },
{ 2,127.5,0.508943272,141.5471945,0.049975355 },
{ 2,128.5,0.551354277,142.0663731,0.050125012 },
{ 2,129.5,0.596307363,142.59742,0.050257992 },
{ 2,130.5,0.643626542,143.1403553,0.050371024 },
{ 2,131.5,0.693062173,143.6949981,0.050460835 },
{ 2,132.5,0.744289752,144.2609497,0.050524236 },
{ 2,133.5,0.79691098,144.8375809,0.050558224 },
{ 2,134.5,0.85045728,145.4240246,0.050560083 },
{ 2,135.5,0.904395871,146.0191748,0.050527494 },
{ 2,136.5,0.958138449,146.621692,0.050458634 },
{ 2,137.5,1.011054559,147.2300177,0.050352269 },
{ 2,138.5,1.062474568,147.8423918,0.050207825 },
{ 2,139.5,1.111727029,148.4568879,0.050025434 },
{ 2,140.5,1.158135105,149.0714413,0.049805967 },
{ 2,141.5,1.201050821,149.6838943,0.049551023 },
{ 2,142.5,1.239852328,150.2920328,0.049262895 },
{ 2,143.5,1.274006058,150.8936469,0.048944504 },
{ 2,144.5,1.303044695,151.4865636,0.048599314 },
{ 2,145.5,1.326605954,152.0686985,0.048231224 },
{ 2,146.5,1.344443447,152.6380955,0.047844442 },
{ 2,147.5,1.356437773,153.1929631,0.047443362 },
{ 2,148.5,1.362602695,153.7317031,0.04703243 },
{ 2,149.5,1.363085725,154.2529332,0.046616026 },
{ 2,150.5,1.358162799,154.755501,0.046198356 },
{ 2,151.5,1.348227142,155.2384904,0.04578335 },
{ 2,152.5,1.333772923,155.7012216,0.045374597 },
{ 2,153.5,1.315374704,156.1432438,0.044975281 },
{ 2,154.5,1.293664024,156.564323,0.044588148 },
{ 2,155.5,1.269304678,156.9644258,0.044215488 },
{ 2,156.5,1.242968236,157.3436995,0.043859135 },
{ 2,157.5,1.21531127,157.7024507,0.04352048 },
{ 2,158.5,1.186955477,158.0411233,0.043200497 },
{ 2,159.5,1.158471522,158.3602756,0.042899776 },
{ 2,160.5,1.130367088,158.6605588,0.042618565 },
{ 2,161.5,1.103079209,158.9426964,0.042356812 },
{ 2,162.5,1.076970655,159.2074654,0.042114211 },
{ 2,163.5,1.052329922,159.455679,0.041890247 },
{ 2,164.5,1.029374161,159.688172,0.04168424 },
{ 2,165.5,1.008254396,159.9057871,0.041495379 },
{ 2,166.5,0.989062282,160.1093647,0.041322765 },
{ 2,167.5,0.971837799,160.299733,0.041165437 },
{ 2,168.5,0.95657215,160.4776996,0.041022401 },
{ 2,169.5,0.94324228,160.6440526,0.040892651 },
{ 2,170.5,0.931767062,160.7995428,0.040775193 },
{ 2,171.5,0.922058291,160.9448916,0.040669052 },
{ 2,172.5,0.914012643,161.0807857,0.040573288 },
{ 2,173.5,0.907516917,161.2078755,0.040487005 },
{ 2,174.5,0.902452436,161.3267744,0.040409354 },
{ 2,175.5,0.898698641,161.4380593,0.040339537 },
{ 2,176.5,0.896143482,161.5422726,0.040276811 },
{ 2,177.5,0.894659668,161.639917,0.040220488 },
{ 2,178.5,0.89413892,161.7314645,0.040169932 },
{ 2,179.5,0.894475371,161.8173534,0.040124562 },
{ 2,180.5,0.895569834,161.8979913,0.040083845 },
{ 2,181.5,0.897330209,161.9737558,0.040047295 },
{ 2,182.5,0.899671635,162.0449969,0.040014473 },
{ 2,183.5,0.902516442,162.1120386,0.03998498 },
{ 2,184.5,0.905793969,162.17518,0.039958458 },
{ 2,185.5,0.909440266,162.2346979,0.039934584 },
{ 2,186.5,0.913397733,162.2908474,0.039913066 },
{ 2,187.5,0.91761471,162.343864,0.039893644 },
{ 2,188.5,0.922045055,162.3939652,0.039876087 },
{ 2,189.5,0.926647697,162.4413513,0.039860185 },
{ 2,190.5,0.931386217,162.4862071,0.039845754 },
{ 2,191.5,0.93622842,162.5287029,0.039832629 },
{ 2,192.5,0.941145943,162.5689958,0.039820663 },
{ 2,193.5,0.94611388,162.6072309,0.039809725 },
{ 2,194.5,0.95111043,162.6435418,0.0397997 },
{ 2,195.5,0.956116576,162.6780519,0.039790485 },
{ 2,196.5,0.961115792,162.7108751,0.039781991 },
{ 2,197.5,0.966093766,162.7421168,0.039774136 },
{ 2,198.5,0.971038162,162.7718741,0.03976685 },
{ 2,199.5,0.975938391,162.8002371,0.03976007 },
{ 2,200.5,0.980785418,162.8272889,0.039753741 },
{ 2,201.5,0.985571579,162.8531067,0.039747815 },
{ 2,202.5,0.99029042,162.8777619,0.039742249 },
{ 2,203.5,0.994936555,162.9013208,0.039737004 },
{ 2,204.5,0.999505539,162.9238449,0.039732048 },
{ 2,205.5,1.003993753,162.9453912,0.039727352 },
{ 2,206.5,1.0083983,162.9660131,0.03972289 },
{ 2,207.5,1.012716921,162.9857599,0.03971864 },
{ 2,208.5,1.016947912,163.0046776,0.039714581 },
{ 2,209.5,1.021090055,163.0228094,0.039710697 },
{ 2,210.5,1.025142554,163.0401953,0.039706971 },
{ 2,211.5,1.029104983,163.0568727,0.039703391 },
{ 2,212.5,1.032977233,163.0728768,0.039699945 },
{ 2,213.5,1.036759475,163.0882404,0.039696623 },
{ 2,214.5,1.040452117,163.1029943,0.039693415 },
{ 2,215.5,1.044055774,163.1171673,0.039690313 },
{ 2,216.5,1.047571238,163.1307866,0.039687311 },
{ 2,217.5,1.050999451,163.1438776,0.039684402 },
{ 2,218.5,1.054341482,163.1564644,0.039681581 },
{ 2,219.5,1.057598512,163.1685697,0.039678842 },
{ 2,220.5,1.060771808,163.1802146,0.039676182 },
{ 2,221.5,1.063862715,163.1914194,0.039673596 },
{ 2,222.5,1.066872639,163.202203,0.039671082 },
{ 2,223.5,1.069803036,163.2125835,0.039668635 },
{ 2,224.5,1.072655401,163.2225779,0.039666254 },
{ 2,225.5,1.075431258,163.2322024,0.039663936 },
{ 2,226.5,1.078132156,163.2414722,0.039661679 },
{ 2,227.5,1.080759655,163.2504019,0.039659481 },
{ 2,228.5,1.083315329,163.2590052,0.039657339 },
{ 2,229.5,1.085800751,163.2672954,0.039655252 },
{ 2,230.5,1.088217496,163.2752848,0.039653218 },
{ 2,231.5,1.090567133,163.2829854,0.039651237 },
{ 2,232.5,1.092851222,163.2904086,0.039649306 },
{ 2,233.5,1.095071313,163.297565,0.039647424 },
{ 2,234.5,1.097228939,163.304465,0.039645591 },
{ 2,235.5,1.099325619,163.3111185,0.039643804 },
{ 2,236.5,1.101362852,163.3175349,0.039642063 },
{ 2,237.5,1.103342119,163.3237231,0.039640367 },
{ 2,238.5,1.105264876,163.3296918,0.039638715 },
{ 2,239.5,1.107132561,163.3354491,0.039637105 },
{ 2,240,1.108046193,163.338251,0.039636316 }
                                          };

        #endregion

        #region WHO 1978 Reference Data
        public static double[,] WHO1978HtAge = {
{ 1,24,80.40000153,81.5,83.40000153,85.59999847,87.69999695,89.69999695,90.80000305 },
{ 1,25,81.09999847,82.30000305,84.19999695,86.40000153,88.59999847,90.59999847,91.80000305 },
{ 1,26,81.80000305,83,85,87.19999695,89.5,91.5,92.69999695 },
{ 1,27,82.5,83.80000305,85.80000305,88.09999847,90.30000305,92.40000153,93.59999847 },
{ 1,28,83.19999695,84.5,86.59999847,88.90000153,91.19999695,93.19999695,94.5 },
{ 1,29,84,85.19999695,87.30000305,89.69999695,92,94.09999847,95.40000153 },
{ 1,30,84.59999847,85.90000153,88.09999847,90.40000153,92.80000305,94.90000153,96.19999695 },
{ 1,31,85.30000305,86.59999847,88.80000305,91.19999695,93.59999847,95.80000305,97.09999847 },
{ 1,32,86,87.30000305,89.5,92,94.40000153,96.59999847,97.90000153 },
{ 1,33,86.69999695,88,90.19999695,92.69999695,95.19999695,97.40000153,98.69999695 },
{ 1,34,87.40000153,88.69999695,91,93.5,96,98.19999695,99.59999847 },
{ 1,35,88,89.40000153,91.69999695,94.19999695,96.69999695,99,100.4000015 },
{ 1,36,88.69999695,90,92.40000153,94.90000153,97.5,99.80000305,101.1999969 },
{ 1,37,89.30000305,90.69999695,93,95.59999847,98.19999695,100.5999985,102 },
{ 1,38,89.90000153,91.40000153,93.69999695,96.30000305,99,101.3000031,102.6999969 },
{ 1,39,90.59999847,92,94.40000153,97,99.69999695,102.0999985,103.5 },
{ 1,40,91.19999695,92.59999847,95,97.69999695,100.4000015,102.8000031,104.3000031 },
{ 1,41,91.80000305,93.30000305,95.69999695,98.40000153,101.0999985,103.5,105 },
{ 1,42,92.40000153,93.90000153,96.30000305,99.09999847,101.8000031,104.3000031,105.6999969 },
{ 1,43,93,94.5,97,99.69999695,102.5,105,106.5 },
{ 1,44,93.59999847,95.09999847,97.59999847,100.4000015,103.1999969,105.6999969,107.1999969 },
{ 1,45,94.19999695,95.69999695,98.19999695,101,103.9000015,106.4000015,107.9000015 },
{ 1,46,94.80000305,96.30000305,98.90000153,101.6999969,104.5,107.0999985,108.5999985 },
{ 1,47,95.40000153,96.90000153,99.5,102.3000031,105.1999969,107.6999969,109.3000031 },
{ 1,48,95.90000153,97.5,100.0999985,102.9000015,105.8000031,108.4000015,110 },
{ 1,49,96.5,98.09999847,100.6999969,103.5999985,106.5,109.0999985,110.5999985 },
{ 1,50,97.09999847,98.59999847,101.3000031,104.1999969,107.0999985,109.6999969,111.3000031 },
{ 1,51,97.59999847,99.19999695,101.8000031,104.8000031,107.6999969,110.4000015,111.9000015 },
{ 1,52,98.19999695,99.80000305,102.4000015,105.4000015,108.3000031,111,112.5999985 },
{ 1,53,98.69999695,100.3000031,103,106,108.9000015,111.5999985,113.1999969 },
{ 1,54,99.30000305,100.9000015,103.5999985,106.5999985,109.5,112.1999969,113.9000015 },
{ 1,55,99.80000305,101.4000015,104.0999985,107.0999985,110.0999985,112.9000015,114.5 },
{ 1,56,100.3000031,101.9000015,104.6999969,107.6999969,110.6999969,113.5,115.0999985 },
{ 1,57,100.8000031,102.5,105.1999969,108.3000031,111.3000031,114.0999985,115.6999969 },
{ 1,58,101.3000031,103,105.8000031,108.8000031,111.9000015,114.6999969,116.3000031 },
{ 1,59,101.9000015,103.5,106.3000031,109.4000015,112.5,115.1999969,116.9000015 },
{ 1,60,102.4000015,104,106.8000031,109.9000015,113,115.8000031,117.5 },
{ 1,61,102.9000015,104.5,107.4000015,110.5,113.5999985,116.4000015,118.0999985 },
{ 1,62,103.4000015,105.0999985,107.9000015,111,114.0999985,117,118.5999985 },
{ 1,63,103.9000015,105.5999985,108.4000015,111.5,114.6999969,117.5,119.1999969 },
{ 1,64,104.3000031,106.0999985,108.9000015,112.0999985,115.1999969,118.0999985,119.8000031 },
{ 1,65,104.8000031,106.5,109.4000015,112.5999985,115.8000031,118.5999985,120.3000031 },
{ 1,66,105.3000031,107,109.9000015,113.0999985,116.3000031,119.1999969,120.9000015 },
{ 1,67,105.8000031,107.5,110.4000015,113.5999985,116.8000031,119.6999969,121.4000015 },
{ 1,68,106.3000031,108,110.9000015,114.0999985,117.3000031,120.1999969,122 },
{ 1,69,106.6999969,108.5,111.4000015,114.5999985,117.9000015,120.8000031,122.5 },
{ 1,70,107.1999969,108.9000015,111.9000015,115.0999985,118.4000015,121.3000031,123 },
{ 1,71,107.5999985,109.4000015,112.3000031,115.5999985,118.9000015,121.8000031,123.5999985 },
{ 1,72,108.0999985,109.9000015,112.8000031,116.0999985,119.4000015,122.3000031,124.0999985 },
{ 1,73,108.5999985,110.3000031,113.3000031,116.5999985,119.9000015,122.8000031,124.5999985 },
{ 1,74,109,110.8000031,113.8000031,117.0999985,120.4000015,123.3000031,125.0999985 },
{ 1,75,109.5,111.1999969,114.1999969,117.5,120.9000015,123.8000031,125.5999985 },
{ 1,76,109.9000015,111.6999969,114.6999969,118,121.3000031,124.3000031,126.0999985 },
{ 1,77,110.3000031,112.0999985,115.0999985,118.5,121.8000031,124.8000031,126.5999985 },
{ 1,78,110.8000031,112.5999985,115.5999985,119,122.3000031,125.3000031,127.0999985 },
{ 1,79,111.1999969,113,116,119.4000015,122.8000031,125.8000031,127.5999985 },
{ 1,80,111.5999985,113.5,116.5,119.9000015,123.3000031,126.3000031,128.1000061 },
{ 1,81,112.0999985,113.9000015,116.9000015,120.3000031,123.6999969,126.8000031,128.6000061 },
{ 1,82,112.5,114.3000031,117.4000015,120.8000031,124.1999969,127.3000031,129.1000061 },
{ 1,83,112.9000015,114.6999969,117.8000031,121.1999969,124.6999969,127.6999969,129.6000061 },
{ 1,84,113.3000031,115.1999969,118.3000031,121.6999969,125.0999985,128.1999969,130.1000061 },
{ 1,85,113.6999969,115.5999985,118.6999969,122.0999985,125.5999985,128.6999969,130.6000061 },
{ 1,86,114.0999985,116,119.0999985,122.5999985,126.0999985,129.1999969,131 },
{ 1,87,114.5999985,116.4000015,119.5999985,123,126.5,129.6000061,131.5 },
{ 1,88,115,116.8000031,120,123.5,127,130.1000061,132 },
{ 1,89,115.4000015,117.3000031,120.4000015,123.9000015,127.4000015,130.6000061,132.5 },
{ 1,90,115.8000031,117.6999969,120.8000031,124.4000015,127.9000015,131,132.8999939 },
{ 1,91,116.1999969,118.0999985,121.3000031,124.8000031,128.3000031,131.5,133.3999939 },
{ 1,92,116.5999985,118.5,121.6999969,125.1999969,128.8000031,132,133.8999939 },
{ 1,93,117,118.9000015,122.0999985,125.6999969,129.1999969,132.3999939,134.3999939 },
{ 1,94,117.4000015,119.3000031,122.5,126.0999985,129.6999969,132.8999939,134.8000031 },
{ 1,95,117.8000031,119.6999969,122.9000015,126.5,130.1000061,133.3999939,135.3000031 },
{ 1,96,118.1999969,120.0999985,123.4000015,127,130.6000061,133.8000031,135.8000031 },
{ 1,97,118.5999985,120.5,123.8000031,127.4000015,131,134.3000031,136.1999969 },
{ 1,98,119,120.9000015,124.1999969,127.8000031,131.5,134.8000031,136.6999969 },
{ 1,99,119.3000031,121.3000031,124.5999985,128.3000031,131.8999939,135.1999969,137.1999969 },
{ 1,100,119.6999969,121.6999969,125,128.6999969,132.3999939,135.6999969,137.6999969 },
{ 1,101,120.0999985,122.0999985,125.4000015,129.1000061,132.8000031,136.1000061,138.1000061 },
{ 1,102,120.5,122.5,125.9000015,129.6000061,133.3000031,136.6000061,138.6000061 },
{ 1,103,120.9000015,122.9000015,126.3000031,130,133.6999969,137.1000061,139.1000061 },
{ 1,104,121.3000031,123.3000031,126.6999969,130.3999939,134.1999969,137.5,139.6000061 },
{ 1,105,121.6999969,123.6999969,127.0999985,130.8999939,134.6000061,138,140 },
{ 1,106,122.0999985,124.0999985,127.5,131.3000031,135.1000061,138.5,140.5 },
{ 1,107,122.4000015,124.5,127.9000015,131.6999969,135.5,139,141 },
{ 1,108,122.8000031,124.9000015,128.3000031,132.1999969,136,139.3999939,141.5 },
{ 1,109,123.1999969,125.3000031,128.8000031,132.6000061,136.3999939,139.8999939,142 },
{ 1,110,123.5999985,125.6999969,129.1999969,133,136.8999939,140.3999939,142.5 },
{ 1,111,124,126.0999985,129.6000061,133.5,137.3999939,140.8999939,143 },
{ 1,112,124.4000015,126.5,130,133.8999939,137.8000031,141.3999939,143.5 },
{ 1,113,124.8000031,126.9000015,130.3999939,134.3999939,138.3000031,141.8000031,144 },
{ 1,114,125.0999985,127.3000031,130.8000031,134.8000031,138.8000031,142.3000031,144.5 },
{ 1,115,125.5,127.6999969,131.3000031,135.3000031,139.1999969,142.8000031,145 },
{ 1,116,125.9000015,128.1000061,131.6999969,135.6999969,139.6999969,143.3000031,145.5 },
{ 1,117,126.3000031,128.5,132.1000061,136.1000061,140.1999969,143.8000031,146 },
{ 1,118,126.6999969,128.8999939,132.5,136.6000061,140.6999969,144.3000031,146.5 },
{ 1,119,127.0999985,129.3000031,133,137.1000061,141.1000061,144.8000031,147 },
{ 2,24,79.19999695,80.40000153,82.30000305,84.5,86.69999695,88.59999847,89.80000305 },
{ 2,25,80,81.19999695,83.09999847,85.40000153,87.59999847,89.59999847,90.69999695 },
{ 2,26,80.69999695,81.90000153,84,86.19999695,88.5,90.5,91.69999695 },
{ 2,27,81.5,82.69999695,84.80000305,87,89.30000305,91.40000153,92.59999847 },
{ 2,28,82.19999695,83.5,85.59999847,87.90000153,90.19999695,92.19999695,93.5 },
{ 2,29,83,84.19999695,86.30000305,88.69999695,91,93.09999847,94.40000153 },
{ 2,30,83.69999695,85,87,89.5,91.80000305,93.90000153,95.19999695 },
{ 2,31,84.40000153,85.69999695,87.80000305,90.19999695,92.59999847,94.80000305,96.09999847 },
{ 2,32,85.09999847,86.40000153,88.59999847,91,93.40000153,95.59999847,96.90000153 },
{ 2,33,85.80000305,87.09999847,89.30000305,91.69999695,94.19999695,96.40000153,97.69999695 },
{ 2,35,87.09999847,88.5,90.69999695,93.19999695,95.69999695,97.90000153,99.30000305 },
{ 2,36,87.80000305,89.19999695,91.40000153,93.90000153,96.40000153,98.69999695,100 },
{ 2,37,88.40000153,89.80000305,92.09999847,94.59999847,97.09999847,99.40000153,100.8000031 },
{ 2,38,89.09999847,90.5,92.69999695,95.30000305,97.80000305,100.0999985,101.5 },
{ 2,39,89.69999695,91.09999847,93.40000153,96,98.5,100.8000031,102.1999969 },
{ 2,40,90.30000305,91.69999695,94.09999847,96.59999847,99.19999695,101.5,102.9000015 },
{ 2,41,90.90000153,92.30000305,94.69999695,97.30000305,99.90000153,102.1999969,103.5999985 },
{ 2,42,91.5,93,95.30000305,97.90000153,100.5999985,102.9000015,104.3000031 },
{ 2,43,92.09999847,93.59999847,95.90000153,98.59999847,101.1999969,103.5999985,105 },
{ 2,44,92.69999695,94.19999695,96.5,99.19999695,101.9000015,104.1999969,105.6999969 },
{ 2,45,93.30000305,94.69999695,97.09999847,99.80000305,102.5,104.9000015,106.3000031 },
{ 2,46,93.90000153,95.30000305,97.69999695,100.4000015,103.0999985,105.5,107 },
{ 2,47,94.40000153,95.90000153,98.30000305,101,103.6999969,106.1999969,107.5999985 },
{ 2,48,95,96.40000153,98.90000153,101.5999985,104.4000015,106.8000031,108.3000031 },
{ 2,49,95.5,97,99.5,102.1999969,105,107.4000015,108.9000015 },
{ 2,50,96.09999847,97.59999847,100,102.8000031,105.5999985,108.0999985,109.5 },
{ 2,51,96.59999847,98.09999847,100.5999985,103.4000015,106.1999969,108.6999969,110.1999969 },
{ 2,52,97.09999847,98.59999847,101.1999969,104,106.8000031,109.3000031,110.8000031 },
{ 2,53,97.59999847,99.19999695,101.6999969,104.5,107.3000031,109.9000015,111.4000015 },
{ 2,54,98.19999695,99.69999695,102.1999969,105.0999985,107.9000015,110.5,112 },
{ 2,55,98.69999695,100.1999969,102.8000031,105.5999985,108.5,111.0999985,112.5999985 },
{ 2,56,99.19999695,100.6999969,103.3000031,106.1999969,109.0999985,111.6999969,113.1999969 },
{ 2,57,99.69999695,101.1999969,103.8000031,106.6999969,109.6999969,112.3000031,113.8000031 },
{ 2,58,100.0999985,101.6999969,104.4000015,107.3000031,110.1999969,112.9000015,114.4000015 },
{ 2,59,100.5999985,102.1999969,104.9000015,107.8000031,110.8000031,113.5,115 },
{ 2,60,101.0999985,102.6999969,105.4000015,108.4000015,111.4000015,114,115.5999985 },
{ 2,61,101.5999985,103.1999969,105.9000015,108.9000015,111.9000015,114.5999985,116.1999969 },
{ 2,62,102.0999985,103.6999969,106.4000015,109.5,112.5,115.1999969,116.8000031 },
{ 2,63,102.5,104.1999969,106.9000015,110,113,115.8000031,117.4000015 },
{ 2,64,103,104.5999985,107.4000015,110.5,113.5999985,116.4000015,118 },
{ 2,65,103.4000015,105.0999985,107.9000015,111,114.0999985,116.9000015,118.5999985 },
{ 2,66,103.9000015,105.5999985,108.4000015,111.5999985,114.6999969,117.5,119.1999969 },
{ 2,67,104.3000031,106.0999985,108.9000015,112.0999985,115.1999969,118.0999985,119.8000031 },
{ 2,68,104.8000031,106.5,109.4000015,112.5999985,115.8000031,118.6999969,120.4000015 },
{ 2,69,105.1999969,107,109.9000015,113.0999985,116.3000031,119.1999969,121 },
{ 2,70,105.6999969,107.4000015,110.4000015,113.5999985,116.9000015,119.8000031,121.5999985 },
{ 2,71,106.0999985,107.9000015,110.8000031,114.0999985,117.4000015,120.4000015,122.0999985 },
{ 2,72,106.5,108.3000031,111.3000031,114.5999985,117.9000015,120.9000015,122.6999969 },
{ 2,73,107,108.8000031,111.8000031,115.0999985,118.5,121.5,123.3000031 },
{ 2,74,107.4000015,109.1999969,112.3000031,115.5999985,119,122.0999985,123.9000015 },
{ 2,75,107.8000031,109.6999969,112.6999969,116.0999985,119.5999985,122.5999985,124.5 },
{ 2,76,108.1999969,110.0999985,113.1999969,116.5999985,120.0999985,123.1999969,125 },
{ 2,77,108.6999969,110.5,113.6999969,117.0999985,120.5999985,123.6999969,125.5999985 },
{ 2,78,109.0999985,111,114.0999985,117.5999985,121.0999985,124.3000031,126.1999969 },
{ 2,79,109.5,111.4000015,114.5999985,118.0999985,121.6999969,124.8000031,126.6999969 },
{ 2,80,109.9000015,111.8000031,115.0999985,118.5999985,122.1999969,125.4000015,127.3000031 },
{ 2,81,110.3000031,112.3000031,115.5,119.0999985,122.6999969,125.9000015,127.9000015 },
{ 2,82,110.6999969,112.6999969,116,119.5999985,123.1999969,126.5,128.5 },
{ 2,83,111.1999969,113.0999985,116.4000015,120.0999985,123.8000031,127,129 },
{ 2,84,111.5999985,113.5999985,116.9000015,120.5999985,124.3000031,127.5999985,129.6000061 },
{ 2,85,112,114,117.3000031,121.0999985,124.8000031,128.1000061,130.1999969 },
{ 2,86,112.4000015,114.4000015,117.8000031,121.5,125.3000031,128.6999969,130.6999969 },
{ 2,87,112.8000031,114.8000031,118.1999969,122,125.8000031,129.1999969,131.3000031 },
{ 2,88,113.1999969,115.3000031,118.6999969,122.5,126.3000031,129.8000031,131.8000031 },
{ 2,89,113.5999985,115.6999969,119.0999985,123,126.9000015,130.3000031,132.3999939 },
{ 2,90,114,116.0999985,119.5999985,123.5,127.4000015,130.8999939,133 },
{ 2,91,114.4000015,116.5,120.0999985,124,127.9000015,131.3999939,133.5 },
{ 2,92,114.8000031,117,120.5,124.5,128.3999939,132,134.1000061 },
{ 2,93,115.1999969,117.4000015,121,124.9000015,128.8999939,132.5,134.6000061 },
{ 2,94,115.5999985,117.8000031,121.4000015,125.4000015,129.3999939,133,135.1999969 },
{ 2,95,116.0999985,118.1999969,121.9000015,125.9000015,129.8999939,133.6000061,135.6999969 },
{ 2,96,116.5,118.6999969,122.3000031,126.4000015,130.5,134.1000061,136.3000031 },
{ 2,97,116.9000015,119.0999985,122.8000031,126.9000015,131,134.6999969,136.8999939 },
{ 2,98,117.3000031,119.5,123.1999969,127.4000015,131.5,135.1999969,137.3999939 },
{ 2,99,117.6999969,119.9000015,123.6999969,127.8000031,132,135.6999969,138 },
{ 2,100,118.0999985,120.4000015,124.0999985,128.3000031,132.5,136.3000031,138.5 },
{ 2,101,118.5,120.8000031,124.5999985,128.8000031,133,136.8000031,139.1000061 },
{ 2,102,119,121.1999969,125.0999985,129.3000031,133.5,137.3000031,139.6000061 },
{ 2,103,119.4000015,121.6999969,125.5,129.8000031,134,137.8999939,140.1999969 },
{ 2,104,119.8000031,122.0999985,126,130.3000031,134.6000061,138.3999939,140.6999969 },
{ 2,105,120.1999969,122.5999985,126.4000015,130.8000031,135.1000061,139,141.3000031 },
{ 2,106,120.6999969,123,126.9000015,131.1999969,135.6000061,139.5,141.8000031 },
{ 2,107,121.0999985,123.5,127.4000015,131.6999969,136.1000061,140,142.3999939 },
{ 2,108,121.5,123.9000015,127.8000031,132.1999969,136.6000061,140.6000061,142.8999939 },
{ 2,109,122,124.4000015,128.3000031,132.6999969,137.1000061,141.1000061,143.5 },
{ 2,110,122.4000015,124.8000031,128.8000031,133.1999969,137.6999969,141.6000061,144 },
{ 2,111,122.9000015,125.3000031,129.3000031,133.6999969,138.1999969,142.1999969,144.6000061 },
{ 2,112,123.3000031,125.6999969,129.8000031,134.1999969,138.6999969,142.6999969,145.1000061 },
{ 2,113,123.8000031,126.1999969,130.1999969,134.6999969,139.1999969,143.3000031,145.6999969 },
{ 2,114,124.1999969,126.6999969,130.6999969,135.1999969,139.6999969,143.8000031,146.1999969 },
{ 2,115,124.6999969,127.0999985,131.1999969,135.6999969,140.3000031,144.3000031,146.8000031 },
{ 2,116,125.1999969,127.5999985,131.6999969,136.1999969,140.8000031,144.8999939,147.3000031 },
{ 2,117,125.5999985,128.1000061,132.1999969,136.8000031,141.3000031,145.3999939,147.8999939 },
{ 2,118,126.0999985,128.6000061,132.6999969,137.3000031,141.8999939,146,148.3999939 },
{ 2,119,126.5999985,129.1000061,133.1999969,137.8000031,142.3999939,146.5,149 }
                                               };

        public static double[,] WHO1978LgthAge = {
{ 1,0,46.70000076,47.59999847,48.90000153,50.5,52,53.40000153,54.20000076 },
{ 1,1,50.5,51.40000153,52.90000153,54.59999847,56.20000076,57.70000076,58.59999847 },
{ 1,2,53.90000153,54.79999924,56.29999924,58.09999847,59.79999924,61.40000153,62.29999924 },
{ 1,3,56.79999924,57.70000076,59.29999924,61.09999847,62.90000153,64.5,65.5 },
{ 1,4,59.29999924,60.29999924,61.90000153,63.70000076,65.5,67.09999847,68.09999847 },
{ 1,5,61.5,62.5,64.09999847,65.90000153,67.69999695,69.40000153,70.30000305 },
{ 1,6,63.40000153,64.40000153,66,67.80000305,69.59999847,71.30000305,72.19999695 },
{ 1,7,65.09999847,66.09999847,67.69999695,69.5,71.30000305,72.90000153,73.90000153 },
{ 1,8,66.59999847,67.59999847,69.19999695,71,72.80000305,74.40000153,75.30000305 },
{ 1,9,68,68.90000153,70.5,72.30000305,74.09999847,75.69999695,76.69999695 },
{ 1,10,69.30000305,70.19999695,71.80000305,73.59999847,75.40000153,77,78 },
{ 1,11,70.5,71.5,73.09999847,74.90000153,76.69999695,78.30000305,79.30000305 },
{ 1,12,71.59999847,72.59999847,74.30000305,76.09999847,77.90000153,79.5,80.5 },
{ 1,13,72.69999695,73.69999695,75.40000153,77.19999695,79.09999847,80.69999695,81.69999695 },
{ 1,14,73.80000305,74.80000305,76.5,78.30000305,80.19999695,81.90000153,82.90000153 },
{ 1,15,74.69999695,75.80000305,77.5,79.40000153,81.30000305,83.09999847,84.09999847 },
{ 1,16,75.69999695,76.69999695,78.5,80.40000153,82.40000153,84.19999695,85.19999695 },
{ 1,17,76.59999847,77.59999847,79.40000153,81.40000153,83.40000153,85.30000305,86.30000305 },
{ 1,18,77.40000153,78.5,80.40000153,82.40000153,84.5,86.30000305,87.40000153 },
{ 1,19,78.19999695,79.40000153,81.19999695,83.30000305,85.40000153,87.30000305,88.40000153 },
{ 1,20,79,80.19999695,82.09999847,84.19999695,86.40000153,88.30000305,89.5 },
{ 1,21,79.80000305,81,82.90000153,85.09999847,87.30000305,89.30000305,90.40000153 },
{ 1,22,80.59999847,81.80000305,83.80000305,86,88.19999695,90.19999695,91.40000153 },
{ 1,23,81.40000153,82.59999847,84.59999847,86.80000305,89.09999847,91.09999847,92.30000305 },
{ 2,0,46.29999924,47.09999847,48.40000153,49.90000153,51.29999924,52.59999847,53.40000153 },
{ 2,1,49.79999924,50.59999847,52,53.5,55.09999847,56.5,57.29999924 },
{ 2,2,52.79999924,53.70000076,55.09999847,56.79999924,58.40000153,59.79999924,60.70000076 },
{ 2,3,55.5,56.40000153,57.90000153,59.5,61.20000076,62.70000076,63.59999847 },
{ 2,4,57.79999924,58.70000076,60.29999924,62,63.70000076,65.19999695,66.19999695 },
{ 2,5,59.79999924,60.70000076,62.29999924,64.09999847,65.80000305,67.40000153,68.40000153 },
{ 2,6,61.59999847,62.5,64.19999695,65.90000153,67.69999695,69.30000305,70.30000305 },
{ 2,7,63.20000076,64.09999847,65.80000305,67.59999847,69.40000153,71,72 },
{ 2,8,64.59999847,65.59999847,67.19999695,69.09999847,70.90000153,72.5,73.5 },
{ 2,9,66,66.90000153,68.59999847,70.40000153,72.30000305,74,74.90000153 },
{ 2,10,67.19999695,68.19999695,69.90000153,71.80000305,73.59999847,75.30000305,76.30000305 },
{ 2,11,68.5,69.5,71.19999695,73.09999847,74.90000153,76.59999847,77.69999695 },
{ 2,12,69.59999847,70.69999695,72.40000153,74.30000305,76.19999695,77.90000153,79 },
{ 2,13,70.80000305,71.80000305,73.59999847,75.5,77.40000153,79.19999695,80.19999695 },
{ 2,14,71.90000153,72.90000153,74.69999695,76.69999695,78.59999847,80.40000153,81.40000153 },
{ 2,15,72.90000153,74,75.80000305,77.80000305,79.80000305,81.59999847,82.59999847 },
{ 2,16,73.90000153,75,76.80000305,78.90000153,80.90000153,82.69999695,83.80000305 },
{ 2,17,74.90000153,76,77.90000153,79.90000153,82,83.80000305,84.90000153 },
{ 2,18,75.90000153,77,78.90000153,80.90000153,83,84.90000153,86 },
{ 2,19,76.80000305,77.90000153,79.80000305,81.90000153,84,85.90000153,87 },
{ 2,20,77.69999695,78.80000305,80.80000305,82.90000153,85,86.90000153,88 },
{ 2,21,78.59999847,79.69999695,81.69999695,83.80000305,86,87.90000153,89 },
{ 2,22,79.40000153,80.59999847,82.5,84.69999695,86.90000153,88.80000305,90 },
{ 2,23,80.30000305,81.40000153,83.40000153,85.59999847,87.80000305,89.80000305,90.90000153 }
                                               };

        public static double[,] WHO1978WtAge = {
{ 1,0,2.599999905,2.700000048,3,3.299999952,3.599999905,3.900000095,4.099999905 },
{ 1,1,3.200000048,3.400000095,3.799999952,4.300000191,4.699999809,5.099999905,5.400000095 },
{ 1,2,3.799999952,4.099999905,4.599999905,5.199999809,5.699999809,6.199999809,6.5 },
{ 1,3,4.400000095,4.800000191,5.300000191,6,6.599999905,7.099999905,7.400000095 },
{ 1,4,5.099999905,5.400000095,6,6.699999809,7.300000191,7.900000095,8.199999809 },
{ 1,5,5.699999809,6,6.599999905,7.300000191,7.900000095,8.5,8.899999619 },
{ 1,6,6.199999809,6.599999905,7.199999809,7.800000191,8.5,9.100000381,9.399999619 },
{ 1,7,6.699999809,7.099999905,7.699999809,8.300000191,9,9.600000381,10 },
{ 1,8,7.199999809,7.5,8.100000381,8.800000191,9.5,10.10000038,10.5 },
{ 1,9,7.599999905,7.900000095,8.5,9.199999809,9.899999619,10.5,10.89999962 },
{ 1,10,7.900000095,8.300000191,8.899999619,9.5,10.30000019,10.89999962,11.30000019 },
{ 1,11,8.199999809,8.600000381,9.199999809,9.899999619,10.60000038,11.30000019,11.60000038 },
{ 1,12,8.5,8.899999619,9.5,10.19999981,10.89999962,11.60000038,12 },
{ 1,13,8.699999809,9.100000381,9.699999809,10.39999962,11.19999981,11.89999962,12.30000019 },
{ 1,14,8.899999619,9.300000191,9.899999619,10.69999981,11.39999962,12.10000038,12.60000038 },
{ 1,15,9.100000381,9.5,10.10000038,10.89999962,11.69999981,12.39999962,12.80000019 },
{ 1,16,9.199999809,9.600000381,10.30000019,11.10000038,11.89999962,12.60000038,13 },
{ 1,17,9.399999619,9.800000191,10.5,11.30000019,12.10000038,12.80000019,13.30000019 },
{ 1,18,9.5,10,10.69999981,11.5,12.30000019,13,13.5 },
{ 1,19,9.699999809,10.10000038,10.80000019,11.69999981,12.5,13.19999981,13.69999981 },
{ 1,20,9.800000191,10.30000019,11,11.80000019,12.69999981,13.5,13.89999962 },
{ 1,21,10,10.39999962,11.19999981,12,12.89999962,13.69999981,14.10000038 },
{ 1,22,10.10000038,10.60000038,11.39999962,12.19999981,13.10000038,13.89999962,14.30000019 },
{ 1,23,10.30000019,10.69999981,11.5,12.39999962,13.30000019,14,14.5 },
{ 1,24,10.5,10.89999962,11.60000038,12.30000019,13.5,14.5,15.10000038 },
{ 1,25,10.60000038,11,11.80000019,12.5,13.69999981,14.69999981,15.30000019 },
{ 1,26,10.69999981,11.19999981,11.89999962,12.69999981,13.89999962,14.89999962,15.5 },
{ 1,27,10.89999962,11.30000019,12.10000038,12.89999962,14.10000038,15.10000038,15.69999981 },
{ 1,28,11,11.5,12.30000019,13.10000038,14.30000019,15.30000019,16 },
{ 1,29,11.10000038,11.60000038,12.39999962,13.30000019,14.5,15.5,16.20000076 },
{ 1,30,11.19999981,11.69999981,12.60000038,13.5,14.69999981,15.69999981,16.39999962 },
{ 1,31,11.39999962,11.89999962,12.69999981,13.69999981,14.89999962,15.89999962,16.60000038 },
{ 1,32,11.5,12,12.89999962,13.89999962,15.10000038,16.10000038,16.79999924 },
{ 1,33,11.60000038,12.19999981,13.10000038,14.10000038,15.30000019,16.39999962,17 },
{ 1,34,11.69999981,12.30000019,13.19999981,14.30000019,15.5,16.60000038,17.20000076 },
{ 1,35,11.89999962,12.39999962,13.39999962,14.39999962,15.69999981,16.79999924,17.39999962 },
{ 1,36,12,12.60000038,13.5,14.60000038,15.80000019,17,17.60000038 },
{ 1,37,12.10000038,12.69999981,13.69999981,14.80000019,16,17.10000038,17.79999924 },
{ 1,38,12.30000019,12.89999962,13.89999962,15,16.20000076,17.29999924,18 },
{ 1,39,12.39999962,13,14,15.19999981,16.39999962,17.5,18.20000076 },
{ 1,40,12.5,13.10000038,14.19999981,15.30000019,16.60000038,17.70000076,18.39999962 },
{ 1,41,12.60000038,13.30000019,14.30000019,15.5,16.79999924,17.89999962,18.60000038 },
{ 1,42,12.80000019,13.39999962,14.5,15.69999981,17,18.10000038,18.79999924 },
{ 1,43,12.89999962,13.60000038,14.60000038,15.80000019,17.20000076,18.29999924,19 },
{ 1,44,13,13.69999981,14.80000019,16,17.29999924,18.5,19.20000076 },
{ 1,45,13.19999981,13.80000019,15,16.20000076,17.5,18.70000076,19.39999962 },
{ 1,46,13.30000019,14,15.10000038,16.39999962,17.70000076,18.89999962,19.60000038 },
{ 1,47,13.39999962,14.10000038,15.30000019,16.5,17.89999962,19.10000038,19.89999962 },
{ 1,48,13.60000038,14.30000019,15.39999962,16.70000076,18.10000038,19.29999924,20.10000038 },
{ 1,49,13.69999981,14.39999962,15.60000038,16.89999962,18.29999924,19.5,20.29999924 },
{ 1,50,13.80000019,14.5,15.69999981,17,18.39999962,19.70000076,20.5 },
{ 1,51,14,14.69999981,15.89999962,17.20000076,18.60000038,19.89999962,20.70000076 },
{ 1,52,14.10000038,14.80000019,16,17.39999962,18.79999924,20.10000038,20.89999962 },
{ 1,53,14.19999981,15,16.20000076,17.5,19,20.29999924,21.10000038 },
{ 1,54,14.39999962,15.10000038,16.29999924,17.70000076,19.20000076,20.5,21.29999924 },
{ 1,55,14.5,15.19999981,16.5,17.89999962,19.39999962,20.70000076,21.5 },
{ 1,56,14.60000038,15.39999962,16.60000038,18,19.5,20.89999962,21.79999924 },
{ 1,57,14.80000019,15.5,16.79999924,18.20000076,19.70000076,21.10000038,22 },
{ 1,58,14.89999962,15.69999981,16.89999962,18.29999924,19.89999962,21.29999924,22.20000076 },
{ 1,59,15.10000038,15.80000019,17.10000038,18.5,20.10000038,21.5,22.39999962 },
{ 1,60,15.19999981,16,17.20000076,18.70000076,20.29999924,21.79999924,22.60000038 },
{ 1,61,15.30000019,16.10000038,17.39999962,18.79999924,20.5,22,22.89999962 },
{ 1,62,15.5,16.20000076,17.60000038,19,20.70000076,22.20000076,23.10000038 },
{ 1,63,15.60000038,16.39999962,17.70000076,19.20000076,20.89999962,22.39999962,23.29999924 },
{ 1,64,15.69999981,16.5,17.89999962,19.29999924,21.10000038,22.60000038,23.60000038 },
{ 1,65,15.89999962,16.70000076,18,19.5,21.29999924,22.79999924,23.79999924 },
{ 1,66,16,16.79999924,18.20000076,19.70000076,21.5,23.10000038,24 },
{ 1,67,16.20000076,17,18.29999924,19.79999924,21.70000076,23.29999924,24.29999924 },
{ 1,68,16.29999924,17.10000038,18.5,20,21.89999962,23.5,24.5 },
{ 1,69,16.39999962,17.29999924,18.60000038,20.20000076,22.10000038,23.70000076,24.79999924 },
{ 1,70,16.60000038,17.39999962,18.79999924,20.29999924,22.29999924,24,25 },
{ 1,71,16.70000076,17.60000038,19,20.5,22.5,24.20000076,25.29999924 },
{ 1,72,16.89999962,17.70000076,19.10000038,20.70000076,22.70000076,24.39999962,25.5 },
{ 1,73,17,17.79999924,19.29999924,20.89999962,22.89999962,24.70000076,25.79999924 },
{ 1,74,17.10000038,18,19.39999962,21,23.10000038,24.89999962,26 },
{ 1,75,17.29999924,18.10000038,19.60000038,21.20000076,23.29999924,25.20000076,26.29999924 },
{ 1,76,17.39999962,18.29999924,19.79999924,21.39999962,23.5,25.39999962,26.60000038 },
{ 1,77,17.5,18.39999962,19.89999962,21.60000038,23.70000076,25.70000076,26.89999962 },
{ 1,78,17.70000076,18.60000038,20.10000038,21.70000076,24,25.89999962,27.10000038 },
{ 1,79,17.79999924,18.70000076,20.20000076,21.89999962,24.20000076,26.20000076,27.39999962 },
{ 1,80,18,18.89999962,20.39999962,22.10000038,24.39999962,26.5,27.70000076 },
{ 1,81,18.10000038,19,20.60000038,22.29999924,24.60000038,26.70000076,28 },
{ 1,82,18.20000076,19.20000076,20.70000076,22.5,24.89999962,27,28.29999924 },
{ 1,83,18.39999962,19.29999924,20.89999962,22.70000076,25.10000038,27.29999924,28.60000038 },
{ 1,84,18.5,19.5,21.10000038,22.89999962,25.29999924,27.60000038,28.89999962 },
{ 1,85,18.70000076,19.60000038,21.20000076,23,25.60000038,27.79999924,29.20000076 },
{ 1,86,18.79999924,19.79999924,21.39999962,23.20000076,25.79999924,28.10000038,29.5 },
{ 1,87,18.89999962,19.89999962,21.60000038,23.39999962,26.10000038,28.39999962,29.79999924 },
{ 1,88,19.10000038,20.10000038,21.79999924,23.60000038,26.29999924,28.70000076,30.20000076 },
{ 1,89,19.20000076,20.20000076,21.89999962,23.79999924,26.60000038,29,30.5 },
{ 1,90,19.39999962,20.39999962,22.10000038,24,26.79999924,29.29999924,30.79999924 },
{ 1,91,19.5,20.5,22.29999924,24.20000076,27.10000038,29.60000038,31.20000076 },
{ 1,92,19.60000038,20.70000076,22.5,24.39999962,27.29999924,29.89999962,31.5 },
{ 1,93,19.79999924,20.89999962,22.70000076,24.70000076,27.60000038,30.29999924,31.89999962 },
{ 1,94,19.89999962,21,22.79999924,24.89999962,27.89999962,30.60000038,32.20000076 },
{ 1,95,20.10000038,21.20000076,23,25.10000038,28.20000076,30.89999962,32.59999847 },
{ 1,96,20.20000076,21.29999924,23.20000076,25.29999924,28.39999962,31.29999924,33 },
{ 1,97,20.29999924,21.5,23.39999962,25.5,28.70000076,31.60000038,33.29999924 },
{ 1,98,20.5,21.60000038,23.60000038,25.70000076,29,31.89999962,33.70000076 },
{ 1,99,20.60000038,21.79999924,23.79999924,26,29.29999924,32.29999924,34.09999847 },
{ 1,100,20.79999924,22,24,26.20000076,29.60000038,32.70000076,34.5 },
{ 1,101,20.89999962,22.10000038,24.20000076,26.39999962,29.89999962,33,34.90000153 },
{ 1,102,21,22.29999924,24.39999962,26.70000076,30.20000076,33.40000153,35.29999924 },
{ 1,103,21.20000076,22.39999962,24.60000038,26.89999962,30.5,33.79999924,35.70000076 },
{ 1,104,21.29999924,22.60000038,24.79999924,27.10000038,30.79999924,34.09999847,36.09999847 },
{ 1,105,21.5,22.79999924,25,27.39999962,31.10000038,34.5,36.5 },
{ 1,106,21.60000038,22.89999962,25.20000076,27.60000038,31.5,34.90000153,37 },
{ 1,107,21.70000076,23.10000038,25.39999962,27.89999962,31.79999924,35.29999924,37.40000153 },
{ 1,108,21.89999962,23.29999924,25.60000038,28.10000038,32.09999847,35.70000076,37.79999924 },
{ 1,109,22,23.39999962,25.79999924,28.39999962,32.40000153,36.09999847,38.29999924 },
{ 1,110,22.20000076,23.60000038,26,28.60000038,32.79999924,36.5,38.70000076 },
{ 1,111,22.29999924,23.79999924,26.20000076,28.89999962,33.09999847,36.90000153,39.20000076 },
{ 1,112,22.5,24,26.39999962,29.20000076,33.5,37.29999924,39.59999847 },
{ 1,113,22.70000076,24.20000076,26.70000076,29.5,33.79999924,37.70000076,40.09999847 },
{ 1,114,22.79999924,24.29999924,26.89999962,29.70000076,34.20000076,38.20000076,40.59999847 },
{ 1,115,23,24.5,27.10000038,30,34.5,38.59999847,41 },
{ 1,116,23.10000038,24.70000076,27.29999924,30.29999924,34.90000153,39,41.5 },
{ 1,117,23.29999924,24.89999962,27.60000038,30.60000038,35.20000076,39.5,42 },
{ 1,118,23.5,25.10000038,27.79999924,30.89999962,35.59999847,39.90000153,42.5 },
{ 1,119,23.60000038,25.29999924,28.10000038,31.10000038,36,40.29999924,42.90000153 },
{ 2,0,2.400000095,2.599999905,2.900000095,3.200000048,3.5,3.700000048,3.799999952 },
{ 2,1,3,3.200000048,3.599999905,4,4.400000095,4.699999809,4.900000095 },
{ 2,2,3.599999905,3.799999952,4.199999809,4.699999809,5.199999809,5.599999905,5.800000191 },
{ 2,3,4.199999809,4.400000095,4.900000095,5.400000095,5.900000095,6.400000095,6.699999809 },
{ 2,4,4.699999809,5,5.5,6,6.599999905,7.099999905,7.400000095 },
{ 2,5,5.300000191,5.599999905,6.099999905,6.699999809,7.300000191,7.800000191,8.100000381 },
{ 2,6,5.800000191,6.099999905,6.599999905,7.199999809,7.800000191,8.399999619,8.699999809 },
{ 2,7,6.199999809,6.599999905,7.099999905,7.699999809,8.300000191,8.899999619,9.300000191 },
{ 2,8,6.599999905,7,7.5,8.199999809,8.800000191,9.399999619,9.800000191 },
{ 2,9,7,7.300000191,7.900000095,8.600000381,9.199999809,9.800000191,10.19999981 },
{ 2,10,7.300000191,7.599999905,8.199999809,8.899999619,9.600000381,10.19999981,10.60000038 },
{ 2,11,7.599999905,7.900000095,8.600000381,9.199999809,9.899999619,10.60000038,10.89999962 },
{ 2,12,7.800000191,8.199999809,8.800000191,9.5,10.19999981,10.89999962,11.19999981 },
{ 2,13,8,8.399999619,9.100000381,9.800000191,10.5,11.10000038,11.5 },
{ 2,14,8.199999809,8.600000381,9.300000191,10,10.69999981,11.39999962,11.80000019 },
{ 2,15,8.399999619,8.800000191,9.5,10.19999981,11,11.60000038,12 },
{ 2,16,8.600000381,9,9.699999809,10.39999962,11.19999981,11.89999962,12.30000019 },
{ 2,17,8.699999809,9.199999809,9.899999619,10.60000038,11.39999962,12.10000038,12.5 },
{ 2,18,8.899999619,9.300000191,10,10.80000019,11.60000038,12.30000019,12.69999981 },
{ 2,19,9.100000381,9.5,10.19999981,11,11.80000019,12.5,12.89999962 },
{ 2,20,9.199999809,9.699999809,10.39999962,11.19999981,12,12.69999981,13.10000038 },
{ 2,21,9.399999619,9.800000191,10.60000038,11.39999962,12.19999981,12.89999962,13.30000019 },
{ 2,22,9.5,10,10.69999981,11.5,12.39999962,13.10000038,13.60000038 },
{ 2,23,9.699999809,10.19999981,10.89999962,11.69999981,12.60000038,13.30000019,13.80000019 },
{ 2,24,9.899999619,10.30000019,11,11.80000019,12.69999981,13.60000038,14.10000038 },
{ 2,25,10,10.5,11.19999981,12,13,13.89999962,14.39999962 },
{ 2,26,10.19999981,10.60000038,11.39999962,12.19999981,13.19999981,14.19999981,14.69999981 },
{ 2,27,10.39999962,10.80000019,11.60000038,12.39999962,13.5,14.39999962,15 },
{ 2,28,10.5,11,11.80000019,12.60000038,13.69999981,14.69999981,15.30000019 },
{ 2,29,10.69999981,11.10000038,11.89999962,12.80000019,14,15,15.60000038 },
{ 2,30,10.80000019,11.30000019,12.10000038,13,14.19999981,15.19999981,15.80000019 },
{ 2,31,11,11.5,12.30000019,13.19999981,14.39999962,15.5,16.10000038 },
{ 2,32,11.10000038,11.60000038,12.5,13.39999962,14.60000038,15.69999981,16.29999924 },
{ 2,33,11.30000019,11.80000019,12.60000038,13.60000038,14.80000019,15.89999962,16.60000038 },
{ 2,34,11.39999962,11.89999962,12.80000019,13.80000019,15,16.20000076,16.79999924 },
{ 2,35,11.5,12.10000038,13,13.89999962,15.19999981,16.39999962,17.10000038 },
{ 2,36,11.69999981,12.19999981,13.10000038,14.10000038,15.39999962,16.60000038,17.29999924 },
{ 2,37,11.80000019,12.39999962,13.30000019,14.30000019,15.60000038,16.79999924,17.5 },
{ 2,38,11.89999962,12.5,13.39999962,14.39999962,15.80000019,17,17.79999924 },
{ 2,39,12.10000038,12.60000038,13.60000038,14.60000038,16,17.20000076,18 },
{ 2,40,12.19999981,12.80000019,13.69999981,14.80000019,16.20000076,17.39999962,18.20000076 },
{ 2,41,12.30000019,12.89999962,13.89999962,14.89999962,16.39999962,17.60000038,18.39999962 },
{ 2,42,12.5,13,14,15.10000038,16.5,17.79999924,18.60000038 },
{ 2,43,12.60000038,13.19999981,14.10000038,15.19999981,16.70000076,18,18.79999924 },
{ 2,44,12.69999981,13.30000019,14.30000019,15.39999962,16.89999962,18.20000076,19 },
{ 2,45,12.80000019,13.39999962,14.39999962,15.5,17.10000038,18.39999962,19.29999924 },
{ 2,46,12.89999962,13.5,14.5,15.69999981,17.20000076,18.60000038,19.5 },
{ 2,47,13,13.69999981,14.69999981,15.80000019,17.39999962,18.79999924,19.70000076 },
{ 2,48,13.19999981,13.80000019,14.80000019,16,17.60000038,19,19.89999962 },
{ 2,49,13.30000019,13.89999962,14.89999962,16.10000038,17.70000076,19.20000076,20 },
{ 2,50,13.39999962,14,15.10000038,16.20000076,17.89999962,19.39999962,20.20000076 },
{ 2,51,13.5,14.10000038,15.19999981,16.39999962,18,19.5,20.39999962 },
{ 2,52,13.60000038,14.30000019,15.30000019,16.5,18.20000076,19.70000076,20.60000038 },
{ 2,53,13.69999981,14.39999962,15.5,16.70000076,18.39999962,19.89999962,20.79999924 },
{ 2,54,13.80000019,14.5,15.60000038,16.79999924,18.5,20.10000038,21 },
{ 2,55,13.89999962,14.60000038,15.69999981,17,18.70000076,20.29999924,21.20000076 },
{ 2,56,14.10000038,14.69999981,15.80000019,17.10000038,18.89999962,20.5,21.39999962 },
{ 2,57,14.19999981,14.80000019,16,17.20000076,19,20.70000076,21.60000038 },
{ 2,58,14.30000019,15,16.10000038,17.39999962,19.20000076,20.79999924,21.79999924 },
{ 2,59,14.39999962,15.10000038,16.20000076,17.5,19.39999962,21,22 },
{ 2,60,14.5,15.19999981,16.39999962,17.70000076,19.5,21.20000076,22.20000076 },
{ 2,61,14.60000038,15.30000019,16.5,17.79999924,19.70000076,21.39999962,22.5 },
{ 2,62,14.69999981,15.39999962,16.60000038,18,19.89999962,21.60000038,22.70000076 },
{ 2,63,14.80000019,15.5,16.79999924,18.10000038,20.10000038,21.79999924,22.89999962 },
{ 2,64,14.89999962,15.69999981,16.89999962,18.29999924,20.20000076,22,23.10000038 },
{ 2,65,15,15.80000019,17,18.39999962,20.39999962,22.20000076,23.29999924 },
{ 2,66,15.10000038,15.89999962,17.20000076,18.60000038,20.60000038,22.39999962,23.60000038 },
{ 2,67,15.19999981,16,17.29999924,18.70000076,20.79999924,22.70000076,23.79999924 },
{ 2,68,15.39999962,16.10000038,17.39999962,18.89999962,21,22.89999962,24 },
{ 2,69,15.5,16.29999924,17.60000038,19,21.20000076,23.10000038,24.29999924 },
{ 2,70,15.60000038,16.39999962,17.70000076,19.20000076,21.39999962,23.29999924,24.5 },
{ 2,71,15.69999981,16.5,17.89999962,19.39999962,21.60000038,23.60000038,24.79999924 },
{ 2,72,15.80000019,16.60000038,18,19.5,21.79999924,23.79999924,25 },
{ 2,73,15.89999962,16.79999924,18.20000076,19.70000076,22,24.10000038,25.29999924 },
{ 2,74,16,16.89999962,18.29999924,19.89999962,22.20000076,24.29999924,25.60000038 },
{ 2,75,16.20000076,17,18.5,20,22.39999962,24.60000038,25.79999924 },
{ 2,76,16.29999924,17.20000076,18.60000038,20.20000076,22.60000038,24.79999924,26.10000038 },
{ 2,77,16.39999962,17.29999924,18.79999924,20.39999962,22.89999962,25.10000038,26.39999962 },
{ 2,78,16.5,17.39999962,18.89999962,20.60000038,23.10000038,25.39999962,26.70000076 },
{ 2,79,16.70000076,17.60000038,19.10000038,20.79999924,23.39999962,25.70000076,27 },
{ 2,80,16.79999924,17.70000076,19.29999924,21,23.60000038,25.89999962,27.29999924 },
{ 2,81,16.89999962,17.89999962,19.39999962,21.20000076,23.89999962,26.20000076,27.70000076 },
{ 2,82,17,18,19.60000038,21.39999962,24.10000038,26.60000038,28 },
{ 2,83,17.20000076,18.20000076,19.79999924,21.60000038,24.39999962,26.89999962,28.39999962 },
{ 2,84,17.29999924,18.29999924,20,21.79999924,24.70000076,27.20000076,28.70000076 },
{ 2,85,17.5,18.5,20.20000076,22.10000038,24.89999962,27.5,29.10000038 },
{ 2,86,17.60000038,18.60000038,20.39999962,22.29999924,25.20000076,27.89999962,29.39999962 },
{ 2,87,17.70000076,18.79999924,20.60000038,22.5,25.5,28.20000076,29.79999924 },
{ 2,88,17.89999962,19,20.79999924,22.79999924,25.79999924,28.60000038,30.20000076 },
{ 2,89,18,19.10000038,21,23,26.10000038,28.89999962,30.60000038 },
{ 2,90,18.20000076,19.29999924,21.20000076,23.29999924,26.39999962,29.29999924,31 },
{ 2,91,18.29999924,19.5,21.39999962,23.5,26.79999924,29.70000076,31.5 },
{ 2,92,18.5,19.60000038,21.60000038,23.79999924,27.10000038,30.10000038,31.89999962 },
{ 2,93,18.60000038,19.79999924,21.79999924,24,27.39999962,30.5,32.29999924 },
{ 2,94,18.79999924,20,22,24.29999924,27.79999924,30.89999962,32.79999924 },
{ 2,95,19,20.20000076,22.29999924,24.60000038,28.10000038,31.29999924,33.20000076 },
{ 2,96,19.10000038,20.39999962,22.5,24.79999924,28.5,31.70000076,33.70000076 },
{ 2,97,19.29999924,20.60000038,22.70000076,25.10000038,28.79999924,32.20000076,34.09999847 },
{ 2,98,19.5,20.79999924,23,25.39999962,29.20000076,32.59999847,34.59999847 },
{ 2,99,19.60000038,21,23.20000076,25.70000076,29.60000038,33,35.09999847 },
{ 2,100,19.79999924,21.20000076,23.5,26,29.89999962,33.5,35.59999847 },
{ 2,101,20,21.39999962,23.70000076,26.29999924,30.29999924,33.90000153,36.09999847 },
{ 2,102,20.20000076,21.60000038,24,26.60000038,30.70000076,34.40000153,36.59999847 },
{ 2,103,20.29999924,21.79999924,24.20000076,26.89999962,31.10000038,34.79999924,37.09999847 },
{ 2,104,20.5,22,24.5,27.20000076,31.5,35.29999924,37.59999847 },
{ 2,105,20.70000076,22.20000076,24.70000076,27.5,31.79999924,35.79999924,38.09999847 },
{ 2,106,20.89999962,22.39999962,25,27.79999924,32.20000076,36.20000076,38.59999847 },
{ 2,107,21.10000038,22.60000038,25.20000076,28.10000038,32.59999847,36.70000076,39.09999847 },
{ 2,108,21.29999924,22.89999962,25.5,28.5,33.09999847,37.20000076,39.70000076 },
{ 2,109,21.5,23.10000038,25.79999924,28.79999924,33.5,37.70000076,40.20000076 },
{ 2,110,21.70000076,23.29999924,26.10000038,29.10000038,33.90000153,38.20000076,40.70000076 },
{ 2,111,21.89999962,23.5,26.29999924,29.39999962,34.29999924,38.70000076,41.29999924 },
{ 2,112,22.10000038,23.79999924,26.60000038,29.79999924,34.70000076,39.20000076,41.79999924 },
{ 2,113,22.29999924,24,26.89999962,30.10000038,35.09999847,39.70000076,42.40000153 },
{ 2,114,22.5,24.29999924,27.20000076,30.5,35.59999847,40.20000076,42.90000153 },
{ 2,115,22.70000076,24.5,27.5,30.79999924,36,40.70000076,43.5 },
{ 2,116,22.89999962,24.70000076,27.79999924,31.10000038,36.40000153,41.20000076,44 },
{ 2,117,23.10000038,25,28.10000038,31.5,36.90000153,41.70000076,44.59999847 },
{ 2,118,23.39999962,25.20000076,28.39999962,31.79999924,37.29999924,42.20000076,45.09999847 },
{ 2,119,23.60000038,25.5,28.70000076,32.20000076,37.70000076,42.70000076,45.70000076 }
                                               };

        public static double[,] WHO1978WtHt = {
{ 1,65,5.900000095,6.300000191,6.800000191,7.5,8.300000191,9.100000381,9.5 },
{ 1,66,6.199999809,6.5,7.099999905,7.699999809,8.600000381,9.300000191,9.800000191 },
{ 1,67,6.400000095,6.800000191,7.400000095,8,8.899999619,9.600000381,10.10000038 },
{ 1,68,6.699999809,7,7.599999905,8.300000191,9.100000381,9.899999619,10.39999962 },
{ 1,69,6.900000095,7.300000191,7.900000095,8.5,9.399999619,10.19999981,10.60000038 },
{ 1,70,7.099999905,7.5,8.100000381,8.800000191,9.600000381,10.39999962,10.89999962 },
{ 1,71,7.400000095,7.699999809,8.300000191,9,9.899999619,10.69999981,11.19999981 },
{ 1,72,7.599999905,8,8.600000381,9.199999809,10.10000038,10.89999962,11.39999962 },
{ 1,73,7.800000191,8.199999809,8.800000191,9.5,10.39999962,11.19999981,11.69999981 },
{ 1,74,8,8.399999619,9,9.699999809,10.60000038,11.39999962,11.89999962 },
{ 1,75,8.300000191,8.600000381,9.199999809,9.899999619,10.80000019,11.69999981,12.19999981 },
{ 1,76,8.5,8.800000191,9.5,10.10000038,11.10000038,11.89999962,12.39999962 },
{ 1,77,8.699999809,9.100000381,9.699999809,10.39999962,11.30000019,12,12.69999981 },
{ 1,78,8.899999619,9.300000191,9.899999619,10.60000038,11.5,12.39999962,12.89999962 },
{ 1,79,9.100000381,9.5,10.10000038,10.80000019,11.80000019,12.60000038,13.10000038 },
{ 1,80,9.300000191,9.699999809,10.30000019,11,12,12.80000019,13.39999962 },
{ 1,81,9.5,9.899999619,10.5,11.19999981,12.19999981,13.10000038,13.60000038 },
{ 1,82,9.699999809,10.10000038,10.69999981,11.5,12.39999962,13.30000019,13.80000019 },
{ 1,83,9.899999619,10.30000019,11,11.69999981,12.60000038,13.5,14.10000038 },
{ 1,84,10.10000038,10.5,11.19999981,11.89999962,12.89999962,13.80000019,14.30000019 },
{ 1,85,10.30000019,10.69999981,11.39999962,12.10000038,13.10000038,14,14.5 },
{ 1,86,10.5,10.89999962,11.60000038,12.30000019,13.30000019,14.19999981,14.69999981 },
{ 1,87,10.69999981,11.10000038,11.80000019,12.60000038,13.60000038,14.39999962,15 },
{ 1,88,10.89999962,11.30000019,12,12.80000019,13.80000019,14.69999981,15.19999981 },
{ 1,89,11.10000038,11.60000038,12.30000019,13,14,14.89999962,15.39999962 },
{ 1,90,11.30000019,11.80000019,12.5,13.30000019,14.19999981,15.10000038,15.69999981 },
{ 1,91,11.5,12,12.69999981,13.5,14.5,15.39999962,15.89999962 },
{ 1,92,11.80000019,12.19999981,12.89999962,13.69999981,14.69999981,15.60000038,16.10000038 },
{ 1,93,12,12.39999962,13.10000038,14,15,15.89999962,16.39999962 },
{ 1,94,12.19999981,12.60000038,13.39999962,14.19999981,15.19999981,16.10000038,16.60000038 },
{ 1,95,12.39999962,12.80000019,13.60000038,14.5,15.5,16.39999962,16.89999962 },
{ 1,96,12.60000038,13.10000038,13.80000019,14.69999981,15.69999981,16.60000038,17.10000038 },
{ 1,97,12.80000019,13.30000019,14.10000038,15,16,16.89999962,17.39999962 },
{ 1,98,13,13.5,14.30000019,15.19999981,16.20000076,17.10000038,17.70000076 },
{ 1,99,13.30000019,13.80000019,14.60000038,15.5,16.5,17.39999962,18 },
{ 1,100,13.5,14,14.80000019,15.69999981,16.79999924,17.70000076,18.20000076 },
{ 1,101,13.69999981,14.19999981,15.10000038,16,17.10000038,18,18.5 },
{ 1,102,14,14.5,15.30000019,16.29999924,17.29999924,18.29999924,18.79999924 },
{ 1,103,14.19999981,14.69999981,15.60000038,16.60000038,17.60000038,18.60000038,19.10000038 },
{ 1,104,14.39999962,15,15.89999962,16.89999962,17.89999962,18.89999962,19.5 },
{ 1,105,14.69999981,15.19999981,16.10000038,17.10000038,18.20000076,19.20000076,19.79999924 },
{ 1,106,14.89999962,15.5,16.39999962,17.39999962,18.5,19.5,20.10000038 },
{ 1,107,15.19999981,15.80000019,16.70000076,17.70000076,18.89999962,19.89999962,20.5 },
{ 1,108,15.5,16,17,18,19.20000076,20.20000076,20.79999924 },
{ 1,109,15.69999981,16.29999924,17.29999924,18.29999924,19.5,20.60000038,21.20000076 },
{ 1,110,16,16.60000038,17.60000038,18.70000076,19.89999962,20.89999962,21.60000038 },
{ 1,111,16.29999924,16.89999962,17.89999962,19,20.20000076,21.29999924,22 },
{ 1,112,16.60000038,17.20000076,18.20000076,19.29999924,20.60000038,21.70000076,22.39999962 },
{ 1,113,16.89999962,17.5,18.5,19.60000038,20.89999962,22.10000038,22.79999924 },
{ 1,114,17.20000076,17.79999924,18.79999924,20,21.29999924,22.5,23.29999924 },
{ 1,115,17.5,18.10000038,19.20000076,20.29999924,21.70000076,23,23.70000076 },
{ 1,116,17.79999924,18.5,19.5,20.70000076,22.10000038,23.39999962,24.20000076 },
{ 1,117,18.20000076,18.79999924,19.89999962,21.10000038,22.5,23.89999962,24.70000076 },
{ 1,118,18.5,19.10000038,20.20000076,21.39999962,23,24.29999924,25.20000076 },
{ 1,119,18.79999924,19.5,20.60000038,21.79999924,23.39999962,24.79999924,25.70000076 },
{ 1,120,19.20000076,19.89999962,21,22.20000076,23.79999924,25.29999924,26.20000076 },
{ 1,121,19.5,20.20000076,21.29999924,22.60000038,24.29999924,25.79999924,26.70000076 },
{ 1,122,19.89999962,20.60000038,21.70000076,23,24.79999924,26.39999962,27.29999924 },
{ 1,123,20.29999924,21,22.10000038,23.39999962,25.29999924,26.89999962,27.89999962 },
{ 1,124,20.70000076,21.39999962,22.60000038,23.89999962,25.79999924,27.5,28.5 },
{ 1,125,21.10000038,21.79999924,23,24.29999924,26.29999924,28.10000038,29.10000038 },
{ 1,126,21.5,22.20000076,23.39999962,24.79999924,26.79999924,28.70000076,29.79999924 },
{ 1,127,21.89999962,22.60000038,23.89999962,25.20000076,27.39999962,29.29999924,30.5 },
{ 1,128,22.29999924,23,24.29999924,25.70000076,28,30,31.20000076 },
{ 1,129,22.70000076,23.5,24.79999924,26.20000076,28.5,30.60000038,31.89999962 },
{ 1,130,23.10000038,23.89999962,25.29999924,26.79999924,29.20000076,31.29999924,32.59999847 },
{ 1,131,23.5,24.39999962,25.79999924,27.29999924,29.79999924,32,33.40000153 },
{ 1,132,24,24.79999924,26.29999924,27.79999924,30.39999962,32.79999924,34.20000076 },
{ 1,133,24.39999962,25.29999924,26.79999924,28.39999962,31.10000038,33.5,35 },
{ 1,134,24.89999962,25.79999924,27.29999924,29,31.79999924,34.29999924,35.79999924 },
{ 1,135,25.29999924,26.29999924,27.89999962,29.60000038,32.5,35.09999847,36.70000076 },
{ 1,136,25.79999924,26.79999924,28.39999962,30.20000076,33.29999924,36,37.59999847 },
{ 1,137,26.29999924,27.29999924,29,30.89999962,34,36.79999924,38.5 },
{ 2,65,5.800000191,6.199999809,6.800000191,7.400000095,8.199999809,9,9.399999619 },
{ 2,66,6.099999905,6.400000095,7,7.699999809,8.5,9.199999809,9.699999809 },
{ 2,67,6.300000191,6.699999809,7.300000191,7.900000095,8.699999809,9.5,9.899999619 },
{ 2,68,6.5,6.900000095,7.5,8.199999809,9,9.699999809,10.19999981 },
{ 2,69,6.800000191,7.099999905,7.699999809,8.399999619,9.199999809,10,10.39999962 },
{ 2,70,7,7.300000191,8,8.600000381,9.5,10.19999981,10.69999981 },
{ 2,71,7.199999809,7.599999905,8.199999809,8.899999619,9.699999809,10.5,10.89999962 },
{ 2,72,7.400000095,7.800000191,8.399999619,9.100000381,9.899999619,10.69999981,11.10000038 },
{ 2,73,7.599999905,8,8.600000381,9.300000191,10.19999981,10.89999962,11.39999962 },
{ 2,74,7.800000191,8.199999809,8.800000191,9.5,10.39999962,11.10000038,11.60000038 },
{ 2,75,8.100000381,8.399999619,9.100000381,9.699999809,10.60000038,11.39999962,11.80000019 },
{ 2,76,8.300000191,8.600000381,9.300000191,10,10.80000019,11.60000038,12.10000038 },
{ 2,77,8.5,8.800000191,9.5,10.19999981,11,11.80000019,12.30000019 },
{ 2,78,8.699999809,9.100000381,9.699999809,10.39999962,11.19999981,12,12.5 },
{ 2,79,8.899999619,9.300000191,9.899999619,10.60000038,11.5,12.19999981,12.69999981 },
{ 2,80,9.100000381,9.5,10.10000038,10.80000019,11.69999981,12.5,12.89999962 },
{ 2,81,9.300000191,9.699999809,10.30000019,11,11.89999962,12.69999981,13.19999981 },
{ 2,82,9.5,9.899999619,10.5,11.19999981,12.10000038,12.89999962,13.39999962 },
{ 2,83,9.699999809,10.10000038,10.69999981,11.39999962,12.30000019,13.10000038,13.60000038 },
{ 2,84,9.899999619,10.30000019,10.89999962,11.60000038,12.5,13.39999962,13.80000019 },
{ 2,85,10.10000038,10.5,11.10000038,11.80000019,12.80000019,13.60000038,14.10000038 },
{ 2,86,10.30000019,10.69999981,11.30000019,12,13,13.80000019,14.30000019 },
{ 2,87,10.5,10.89999962,11.5,12.30000019,13.19999981,14,14.60000038 },
{ 2,88,10.69999981,11.10000038,11.69999981,12.5,13.39999962,14.30000019,14.80000019 },
{ 2,89,10.89999962,11.30000019,11.89999962,12.69999981,13.69999981,14.5,15 },
{ 2,90,11.10000038,11.5,12.19999981,12.89999962,13.89999962,14.80000019,15.30000019 },
{ 2,91,11.30000019,11.69999981,12.39999962,13.19999981,14.10000038,15,15.60000038 },
{ 2,92,11.5,11.89999962,12.60000038,13.39999962,14.39999962,15.30000019,15.80000019 },
{ 2,93,11.69999981,12.10000038,12.80000019,13.60000038,14.60000038,15.5,16.10000038 },
{ 2,94,11.89999962,12.30000019,13,13.89999962,14.89999962,15.80000019,16.39999962 },
{ 2,95,12.10000038,12.5,13.30000019,14.10000038,15.10000038,16.10000038,16.60000038 },
{ 2,96,12.30000019,12.69999981,13.5,14.30000019,15.39999962,16.29999924,16.89999962 },
{ 2,97,12.5,13,13.69999981,14.60000038,15.69999981,16.60000038,17.20000076 },
{ 2,98,12.69999981,13.19999981,14,14.89999962,15.89999962,16.89999962,17.5 },
{ 2,99,12.89999962,13.39999962,14.19999981,15.10000038,16.20000076,17.20000076,17.79999924 },
{ 2,100,13.10000038,13.60000038,14.5,15.39999962,16.5,17.5,18.10000038 },
{ 2,101,13.39999962,13.89999962,14.69999981,15.60000038,16.79999924,17.79999924,18.39999962 },
{ 2,102,13.60000038,14.10000038,15,15.89999962,17.10000038,18.10000038,18.70000076 },
{ 2,103,13.80000019,14.30000019,15.19999981,16.20000076,17.29999924,18.39999962,19 },
{ 2,104,14.10000038,14.60000038,15.5,16.5,17.60000038,18.70000076,19.39999962 },
{ 2,105,14.30000019,14.80000019,15.69999981,16.70000076,17.89999962,19,19.70000076 },
{ 2,106,14.60000038,15.10000038,16,17,18.29999924,19.39999962,20 },
{ 2,107,14.80000019,15.39999962,16.29999924,17.29999924,18.60000038,19.70000076,20.39999962 },
{ 2,108,15.10000038,15.60000038,16.60000038,17.60000038,18.89999962,20,20.70000076 },
{ 2,109,15.30000019,15.89999962,16.89999962,17.89999962,19.20000076,20.39999962,21.10000038 },
{ 2,110,15.60000038,16.20000076,17.20000076,18.20000076,19.60000038,20.70000076,21.5 },
{ 2,111,15.89999962,16.5,17.5,18.60000038,19.89999962,21,21.79999924 },
{ 2,112,16.20000076,16.79999924,17.79999924,18.89999962,20.29999924,21.5,22.20000076 },
{ 2,113,16.5,17.10000038,18.10000038,19.20000076,20.60000038,21.89999962,22.60000038 },
{ 2,114,16.79999924,17.39999962,18.39999962,19.5,21,22.29999924,23.10000038 },
{ 2,115,17.10000038,17.70000076,18.70000076,19.89999962,21.39999962,22.70000076,23.5 },
{ 2,116,17.39999962,18,19.10000038,20.29999924,21.79999924,23.20000076,24 },
{ 2,117,17.70000076,18.39999962,19.39999962,20.60000038,22.20000076,23.60000038,24.5 },
{ 2,118,18.10000038,18.70000076,19.79999924,21,22.60000038,24.10000038,25 },
{ 2,119,18.39999962,19.10000038,20.20000076,21.39999962,23.10000038,24.60000038,25.5 },
{ 2,120,18.70000076,19.39999962,20.60000038,21.79999924,23.60000038,25.10000038,26.10000038 },
{ 2,121,19.10000038,19.79999924,21,22.20000076,24.10000038,25.70000076,26.70000076 },
{ 2,122,19.5,20.20000076,21.39999962,22.70000076,24.60000038,26.29999924,27.29999924 },
{ 2,123,19.79999924,20.60000038,21.79999924,23.10000038,25.10000038,26.89999962,27.89999962 },
{ 2,124,20.20000076,21,22.20000076,23.60000038,25.70000076,27.5,28.60000038 },
{ 2,125,20.60000038,21.39999962,22.70000076,24.10000038,26.20000076,28.20000076,29.29999924 },
{ 2,126,21,21.79999924,23.10000038,24.60000038,26.89999962,28.89999962,30.10000038 },
{ 2,127,21.39999962,22.20000076,23.60000038,25.10000038,27.5,29.60000038,30.89999962 },
{ 2,128,21.89999962,22.70000076,24.10000038,25.70000076,28.20000076,30.39999962,31.79999924 },
{ 2,129,22.29999924,23.20000076,24.60000038,26.20000076,28.89999962,31.20000076,32.70000076 },
{ 2,130,22.70000076,23.60000038,25.10000038,26.79999924,29.60000038,32.09999847,33.59999847 },
{ 2,131,23.20000076,24.10000038,25.70000076,27.39999962,30.29999924,33,34.59999847 },
{ 2,132,23.60000038,24.60000038,26.20000076,28,31.10000038,33.90000153,35.59999847 },
{ 2,133,24.10000038,25.10000038,26.79999924,28.70000076,32,34.90000153,36.70000076 },
{ 2,134,24.60000038,25.70000076,27.39999962,29.39999962,32.79999924,36,37.79999924 },
{ 2,135,25.10000038,26.20000076,28,30.10000038,33.70000076,37,39 },
{ 2,136,25.60000038,26.70000076,28.70000076,30.79999924,34.70000076,38.20000076,40.29999924 },
{ 2,137,26.10000038,27.29999924,29.29999924,31.5,35.59999847,39.40000153,41.59999847 }
                                               };

        public static double[,] WHO1978WtLgth = {
{ 1,49,2.599999905,2.700000048,2.900000095,3.099999905,3.5,3.799999952,4 },
{ 1,50,2.700000048,2.799999952,3,3.299999952,3.700000048,4,4.199999809 },
{ 1,51,2.799999952,2.900000095,3.200000048,3.5,3.799999952,4.199999809,4.400000095 },
{ 1,52,2.900000095,3.099999905,3.400000095,3.700000048,4.099999905,4.400000095,4.599999905 },
{ 1,53,3.099999905,3.299999952,3.599999905,3.900000095,4.300000191,4.599999905,4.800000191 },
{ 1,54,3.299999952,3.400000095,3.799999952,4.099999905,4.5,4.900000095,5.099999905 },
{ 1,55,3.400000095,3.599999905,4,4.300000191,4.800000191,5.099999905,5.400000095 },
{ 1,56,3.700000048,3.900000095,4.199999809,4.599999905,5,5.400000095,5.599999905 },
{ 1,57,3.900000095,4.099999905,4.400000095,4.800000191,5.300000191,5.699999809,5.900000095 },
{ 1,58,4.099999905,4.300000191,4.699999809,5.099999905,5.599999905,6,6.199999809 },
{ 1,59,4.300000191,4.599999905,5,5.400000095,5.800000191,6.300000191,6.5 },
{ 1,60,4.599999905,4.800000191,5.199999809,5.699999809,6.099999905,6.599999905,6.800000191 },
{ 1,61,4.900000095,5.099999905,5.5,5.900000095,6.400000095,6.900000095,7.099999905 },
{ 1,62,5.099999905,5.400000095,5.800000191,6.199999809,6.699999809,7.199999809,7.400000095 },
{ 1,63,5.400000095,5.599999905,6.099999905,6.5,7,7.5,7.699999809 },
{ 1,64,5.699999809,5.900000095,6.300000191,6.800000191,7.300000191,7.800000191,8.100000381 },
{ 1,65,6,6.199999809,6.599999905,7.099999905,7.599999905,8.100000381,8.399999619 },
{ 1,66,6.199999809,6.5,6.900000095,7.400000095,7.900000095,8.399999619,8.699999809 },
{ 1,67,6.5,6.800000191,7.199999809,7.699999809,8.199999809,8.699999809,9 },
{ 1,68,6.800000191,7,7.5,8,8.5,9,9.300000191 },
{ 1,69,7,7.300000191,7.800000191,8.300000191,8.800000191,9.300000191,9.600000381 },
{ 1,70,7.300000191,7.599999905,8,8.5,9.100000381,9.600000381,9.899999619 },
{ 1,71,7.599999905,7.800000191,8.300000191,8.800000191,9.399999619,9.899999619,10.19999981 },
{ 1,72,7.800000191,8.100000381,8.600000381,9.100000381,9.699999809,10.19999981,10.5 },
{ 1,73,8.100000381,8.300000191,8.800000191,9.300000191,9.899999619,10.5,10.80000019 },
{ 1,74,8.300000191,8.600000381,9,9.600000381,10.19999981,10.69999981,11 },
{ 1,75,8.5,8.800000191,9.300000191,9.800000191,10.39999962,11,11.30000019 },
{ 1,76,8.699999809,9,9.5,10,10.69999981,11.19999981,11.60000038 },
{ 1,77,8.899999619,9.199999809,9.699999809,10.30000019,10.89999962,11.5,11.80000019 },
{ 1,78,9.100000381,9.399999619,9.899999619,10.5,11.10000038,11.69999981,12 },
{ 1,79,9.300000191,9.600000381,10.10000038,10.69999981,11.30000019,11.89999962,12.30000019 },
{ 1,80,9.5,9.800000191,10.30000019,10.89999962,11.60000038,12.19999981,12.5 },
{ 1,81,9.699999809,10,10.5,11.10000038,11.80000019,12.39999962,12.69999981 },
{ 1,82,9.899999619,10.19999981,10.69999981,11.30000019,12,12.60000038,13 },
{ 1,83,10.10000038,10.39999962,10.89999962,11.5,12.19999981,12.80000019,13.19999981 },
{ 1,84,10.19999981,10.60000038,11.10000038,11.69999981,12.39999962,13,13.39999962 },
{ 1,85,10.39999962,10.80000019,11.30000019,11.89999962,12.60000038,13.30000019,13.60000038 },
{ 1,86,10.60000038,10.89999962,11.5,12.10000038,12.80000019,13.5,13.80000019 },
{ 1,87,10.80000019,11.10000038,11.69999981,12.30000019,13,13.69999981,14.10000038 },
{ 1,88,11,11.30000019,11.89999962,12.5,13.30000019,13.89999962,14.30000019 },
{ 1,89,11.19999981,11.5,12.10000038,12.80000019,13.5,14.10000038,14.5 },
{ 1,90,11.39999962,11.69999981,12.30000019,13,13.69999981,14.30000019,14.69999981 },
{ 1,91,11.60000038,11.89999962,12.5,13.19999981,13.89999962,14.60000038,15 },
{ 1,92,11.80000019,12.10000038,12.80000019,13.39999962,14.19999981,14.80000019,15.19999981 },
{ 1,93,12,12.39999962,13,13.69999981,14.39999962,15,15.39999962 },
{ 1,94,12.19999981,12.60000038,13.19999981,13.89999962,14.60000038,15.30000019,15.69999981 },
{ 1,95,12.39999962,12.80000019,13.39999962,14.10000038,14.89999962,15.5,15.89999962 },
{ 1,96,12.69999981,13.10000038,13.69999981,14.39999962,15.10000038,15.80000019,16.20000076 },
{ 1,97,12.89999962,13.30000019,13.89999962,14.69999981,15.39999962,16.10000038,16.39999962 },
{ 1,98,13.19999981,13.5,14.19999981,14.89999962,15.69999981,16.29999924,16.70000076 },
{ 1,99,13.39999962,13.80000019,14.5,15.19999981,15.89999962,16.60000038,17 },
{ 1,100,13.69999981,14.10000038,14.69999981,15.5,16.20000076,16.89999962,17.29999924 },
{ 2,49,2.700000048,2.799999952,3,3.299999952,3.5,3.700000048,3.900000095 },
{ 2,50,2.799999952,2.900000095,3.200000048,3.400000095,3.700000048,3.900000095,4.099999905 },
{ 2,51,2.900000095,3,3.299999952,3.5,3.799999952,4.099999905,4.300000191 },
{ 2,52,3,3.200000048,3.400000095,3.700000048,4,4.300000191,4.5 },
{ 2,53,3.099999905,3.299999952,3.599999905,3.900000095,4.199999809,4.5,4.699999809 },
{ 2,54,3.299999952,3.5,3.799999952,4.099999905,4.5,4.800000191,5 },
{ 2,55,3.5,3.700000048,4,4.300000191,4.699999809,5,5.199999809 },
{ 2,56,3.700000048,3.900000095,4.199999809,4.5,4.900000095,5.300000191,5.5 },
{ 2,57,3.900000095,4.099999905,4.400000095,4.800000191,5.199999809,5.599999905,5.800000191 },
{ 2,58,4.099999905,4.300000191,4.599999905,5,5.400000095,5.800000191,6.099999905 },
{ 2,59,4.300000191,4.5,4.900000095,5.300000191,5.699999809,6.099999905,6.400000095 },
{ 2,60,4.5,4.800000191,5.099999905,5.5,6,6.400000095,6.699999809 },
{ 2,61,4.800000191,5,5.400000095,5.800000191,6.300000191,6.699999809,7 },
{ 2,62,5,5.300000191,5.699999809,6.099999905,6.599999905,7,7.300000191 },
{ 2,63,5.300000191,5.5,5.900000095,6.400000095,6.900000095,7.300000191,7.599999905 },
{ 2,64,5.5,5.800000191,6.199999809,6.699999809,7.199999809,7.599999905,7.900000095 },
{ 2,65,5.800000191,6.099999905,6.5,7,7.5,7.900000095,8.199999809 },
{ 2,66,6.099999905,6.300000191,6.800000191,7.300000191,7.800000191,8.199999809,8.5 },
{ 2,67,6.300000191,6.599999905,7,7.5,8.100000381,8.5,8.800000191 },
{ 2,68,6.599999905,6.800000191,7.300000191,7.800000191,8.300000191,8.800000191,9.100000381 },
{ 2,69,6.800000191,7.099999905,7.599999905,8.100000381,8.600000381,9.100000381,9.399999619 },
{ 2,70,7.099999905,7.400000095,7.800000191,8.399999619,8.899999619,9.399999619,9.600000381 },
{ 2,71,7.300000191,7.599999905,8.100000381,8.600000381,9.199999809,9.600000381,9.899999619 },
{ 2,72,7.5,7.800000191,8.300000191,8.899999619,9.399999619,9.899999619,10.19999981 },
{ 2,73,7.800000191,8.100000381,8.600000381,9.100000381,9.699999809,10.10000038,10.39999962 },
{ 2,74,8,8.300000191,8.800000191,9.399999619,9.899999619,10.39999962,10.69999981 },
{ 2,75,8.199999809,8.5,9,9.600000381,10.10000038,10.60000038,10.89999962 },
{ 2,76,8.399999619,8.699999809,9.199999809,9.800000191,10.39999962,10.89999962,11.19999981 },
{ 2,77,8.600000381,8.899999619,9.399999619,10,10.60000038,11.10000038,11.39999962 },
{ 2,78,8.800000191,9.100000381,9.600000381,10.19999981,10.80000019,11.30000019,11.60000038 },
{ 2,79,9,9.300000191,9.800000191,10.39999962,11,11.5,11.80000019 },
{ 2,80,9.199999809,9.5,10,10.60000038,11.19999981,11.69999981,12 },
{ 2,81,9.300000191,9.699999809,10.19999981,10.80000019,11.39999962,11.89999962,12.19999981 },
{ 2,82,9.5,9.800000191,10.39999962,11,11.60000038,12.10000038,12.5 },
{ 2,83,9.699999809,10,10.60000038,11.19999981,11.80000019,12.30000019,12.69999981 },
{ 2,84,9.899999619,10.19999981,10.80000019,11.39999962,12,12.5,12.89999962 },
{ 2,85,10.10000038,10.39999962,10.89999962,11.60000038,12.19999981,12.69999981,13.10000038 },
{ 2,86,10.19999981,10.60000038,11.10000038,11.80000019,12.39999962,13,13.30000019 },
{ 2,87,10.39999962,10.80000019,11.30000019,11.89999962,12.60000038,13.19999981,13.5 },
{ 2,88,10.60000038,11,11.5,12.19999981,12.80000019,13.39999962,13.69999981 },
{ 2,89,10.80000019,11.19999981,11.69999981,12.39999962,13,13.60000038,14 },
{ 2,90,11,11.39999962,11.89999962,12.60000038,13.19999981,13.80000019,14.19999981 },
{ 2,91,11.19999981,11.60000038,12.19999981,12.80000019,13.5,14.10000038,14.39999962 },
{ 2,92,11.39999962,11.80000019,12.39999962,13,13.69999981,14.30000019,14.69999981 },
{ 2,93,11.69999981,12,12.60000038,13.30000019,14,14.60000038,14.89999962 },
{ 2,94,11.89999962,12.19999981,12.80000019,13.5,14.19999981,14.80000019,15.19999981 },
{ 2,95,12.10000038,12.5,13.10000038,13.80000019,14.5,15.10000038,15.5 },
{ 2,96,12.39999962,12.69999981,13.30000019,14,14.69999981,15.39999962,15.80000019 },
{ 2,97,12.60000038,13,13.60000038,14.30000019,15,15.69999981,16.10000038 },
{ 2,98,12.89999962,13.30000019,13.89999962,14.60000038,15.30000019,16,16.39999962 },
{ 2,99,13.10000038,13.5,14.19999981,14.89999962,15.60000038,16.29999924,16.70000076 },
{ 2,100,13.39999962,13.80000019,14.5,15.19999981,15.89999962,16.60000038,17 }
                                               };
        #endregion WHO 1978 Reference Data

        #region WHO 2006 Growth Standards Data

        private static double[,] WHO2006HtAge = { 
                                                { 1,0,1,49.8842,0.03795 },
{ 1,1,1,54.7244,0.03557 },
{ 1,2,1,58.4249,0.03424 },
{ 1,3,1,61.4292,0.03328 },
{ 1,4,1,63.886,0.03257 },
{ 1,5,1,65.9026,0.03204 },
{ 1,6,1,67.6236,0.03165 },
{ 1,7,1,69.1645,0.03139 },
{ 1,8,1,70.5994,0.03124 },
{ 1,9,1,71.9687,0.03117 },
{ 1,10,1,73.2812,0.03118 },
{ 1,11,1,74.5388,0.03125 },
{ 1,12,1,75.7488,0.03137 },
{ 1,13,1,76.9186,0.03154 },
{ 1,14,1,78.0497,0.03174 },
{ 1,15,1,79.1458,0.03197 },
{ 1,16,1,80.2113,0.03222 },
{ 1,17,1,81.2487,0.0325 },
{ 1,18,1,82.2587,0.03279 },
{ 1,19,1,83.2418,0.0331 },
{ 1,20,1,84.1996,0.03342 },
{ 1,21,1,85.1348,0.03376 },
{ 1,22,1,86.0477,0.0341 },
{ 1,23,1,86.941,0.03445 },
{ 1,24,1,87.8161,0.03479 },
{ 1,24,1,87.1161,0.03507 },
{ 1,25,1,87.972,0.03542 },
{ 1,26,1,88.8065,0.03576 },
{ 1,27,1,89.6197,0.0361 },
{ 1,28,1,90.412,0.03642 },
{ 1,29,1,91.1828,0.03674 },
{ 1,30,1,91.9327,0.03704 },
{ 1,31,1,92.6631,0.03733 },
{ 1,32,1,93.3753,0.03761 },
{ 1,33,1,94.0711,0.03787 },
{ 1,34,1,94.7532,0.03812 },
{ 1,35,1,95.4236,0.03836 },
{ 1,36,1,96.0835,0.03858 },
{ 1,37,1,96.7337,0.03879 },
{ 1,38,1,97.3749,0.039 },
{ 1,39,1,98.0073,0.03919 },
{ 1,40,1,98.631,0.03937 },
{ 1,41,1,99.2459,0.03954 },
{ 1,42,1,99.8515,0.03971 },
{ 1,43,1,100.4485,0.03986 },
{ 1,44,1,101.0374,0.04002 },
{ 1,45,1,101.6186,0.04016 },
{ 1,46,1,102.1933,0.04031 },
{ 1,47,1,102.7625,0.04045 },
{ 1,48,1,103.3273,0.04059 },
{ 1,49,1,103.8886,0.04073 },
{ 1,50,1,104.4473,0.04086 },
{ 1,51,1,105.0041,0.041 },
{ 1,52,1,105.5596,0.04113 },
{ 1,53,1,106.1138,0.04126 },
{ 1,54,1,106.6668,0.04139 },
{ 1,55,1,107.2188,0.04152 },
{ 1,56,1,107.7697,0.04165 },
{ 1,57,1,108.3198,0.04177 },
{ 1,58,1,108.8689,0.0419 },
{ 1,59,1,109.417,0.04202 },
{ 1,60,1,109.9638,0.04214 },
{ 2,0,1,49.1477,0.0379 },
{ 2,1,1,53.6872,0.0364 },
{ 2,2,1,57.0673,0.03568 },
{ 2,3,1,59.8029,0.0352 },
{ 2,4,1,62.0899,0.03486 },
{ 2,5,1,64.0301,0.03463 },
{ 2,6,1,65.7311,0.03448 },
{ 2,7,1,67.2873,0.03441 },
{ 2,8,1,68.7498,0.0344 },
{ 2,9,1,70.1435,0.03444 },
{ 2,10,1,71.4818,0.03452 },
{ 2,11,1,72.771,0.03464 },
{ 2,12,1,74.015,0.03479 },
{ 2,13,1,75.2176,0.03496 },
{ 2,14,1,76.3817,0.03514 },
{ 2,15,1,77.5099,0.03534 },
{ 2,16,1,78.6055,0.03555 },
{ 2,17,1,79.671,0.03576 },
{ 2,18,1,80.7079,0.03598 },
{ 2,19,1,81.7182,0.0362 },
{ 2,20,1,82.7036,0.03643 },
{ 2,21,1,83.6654,0.03666 },
{ 2,22,1,84.604,0.03688 },
{ 2,23,1,85.5202,0.03711 },
{ 2,24,1,86.4153,0.03734 },
{ 2,24,1,85.7153,0.03764 },
{ 2,25,1,86.5904,0.03786 },
{ 2,26,1,87.4462,0.03808 },
{ 2,27,1,88.283,0.0383 },
{ 2,28,1,89.1004,0.03851 },
{ 2,29,1,89.8991,0.03872 },
{ 2,30,1,90.6797,0.03893 },
{ 2,31,1,91.443,0.03913 },
{ 2,32,1,92.1906,0.03933 },
{ 2,33,1,92.9239,0.03952 },
{ 2,34,1,93.6444,0.03971 },
{ 2,35,1,94.3533,0.03989 },
{ 2,36,1,95.0515,0.04006 },
{ 2,37,1,95.7399,0.04024 },
{ 2,38,1,96.4187,0.04041 },
{ 2,39,1,97.0885,0.04057 },
{ 2,40,1,97.7493,0.04073 },
{ 2,41,1,98.4015,0.04089 },
{ 2,42,1,99.0448,0.04105 },
{ 2,43,1,99.6795,0.0412 },
{ 2,44,1,100.3058,0.04135 },
{ 2,45,1,100.9238,0.0415 },
{ 2,46,1,101.5337,0.04164 },
{ 2,47,1,102.136,0.04179 },
{ 2,48,1,102.7312,0.04193 },
{ 2,49,1,103.3197,0.04206 },
{ 2,50,1,103.9021,0.0422 },
{ 2,51,1,104.4786,0.04233 },
{ 2,52,1,105.0494,0.04246 },
{ 2,53,1,105.6148,0.04259 },
{ 2,54,1,106.1748,0.04272 },
{ 2,55,1,106.7295,0.04285 },
{ 2,56,1,107.2788,0.04298 },
{ 2,57,1,107.8227,0.0431 },
{ 2,58,1,108.3613,0.04322 },
{ 2,59,1,108.8948,0.04334 },
{ 2,60,1,109.4233,0.04347 }
                                                };
        private static double[,] WHO2006LgthAge = { 
                                                  { 1, 1 } 
                                                  };
        private static double[,] WHO2006WtAge = { 
                                                { 1,0,0.3487,3.3464,0.14602 },
{ 1,1,0.2297,4.4709,0.13395 },
{ 1,2,0.197,5.5675,0.12385 },
{ 1,3,0.1738,6.3762,0.11727 },
{ 1,4,0.1553,7.0023,0.11316 },
{ 1,5,0.1395,7.5105,0.1108 },
{ 1,6,0.1257,7.934,0.10958 },
{ 1,7,0.1134,8.297,0.10902 },
{ 1,8,0.1021,8.6151,0.10882 },
{ 1,9,0.0917,8.9014,0.10881 },
{ 1,10,0.082,9.1649,0.10891 },
{ 1,11,0.073,9.4122,0.10906 },
{ 1,12,0.0644,9.6479,0.10925 },
{ 1,13,0.0563,9.8749,0.10949 },
{ 1,14,0.0487,10.0953,0.10976 },
{ 1,15,0.0413,10.3108,0.11007 },
{ 1,16,0.0343,10.5228,0.11041 },
{ 1,17,0.0275,10.7319,0.11079 },
{ 1,18,0.0211,10.9385,0.11119 },
{ 1,19,0.0148,11.143,0.11164 },
{ 1,20,0.0087,11.3462,0.11211 },
{ 1,21,0.0029,11.5486,0.11261 },
{ 1,22,-0.0028,11.7504,0.11314 },
{ 1,23,-0.0083,11.9514,0.11369 },
{ 1,24,-0.0137,12.1515,0.11426 },
{ 1,25,-0.0189,12.3502,0.11485 },
{ 1,26,-0.024,12.5466,0.11544 },
{ 1,27,-0.0289,12.7401,0.11604 },
{ 1,28,-0.0337,12.9303,0.11664 },
{ 1,29,-0.0385,13.1169,0.11723 },
{ 1,30,-0.0431,13.3,0.11781 },
{ 1,31,-0.0476,13.4798,0.11839 },
{ 1,32,-0.052,13.6567,0.11896 },
{ 1,33,-0.0564,13.8309,0.11953 },
{ 1,34,-0.0606,14.0031,0.12008 },
{ 1,35,-0.0648,14.1736,0.12062 },
{ 1,36,-0.0689,14.3429,0.12116 },
{ 1,37,-0.0729,14.5113,0.12168 },
{ 1,38,-0.0769,14.6791,0.1222 },
{ 1,39,-0.0808,14.8466,0.12271 },
{ 1,40,-0.0846,15.014,0.12322 },
{ 1,41,-0.0883,15.1813,0.12373 },
{ 1,42,-0.092,15.3486,0.12425 },
{ 1,43,-0.0957,15.5158,0.12478 },
{ 1,44,-0.0993,15.6828,0.12531 },
{ 1,45,-0.1028,15.8497,0.12586 },
{ 1,46,-0.1063,16.0163,0.12643 },
{ 1,47,-0.1097,16.1827,0.127 },
{ 1,48,-0.1131,16.3489,0.12759 },
{ 1,49,-0.1165,16.515,0.12819 },
{ 1,50,-0.1198,16.6811,0.1288 },
{ 1,51,-0.123,16.8471,0.12943 },
{ 1,52,-0.1262,17.0132,0.13005 },
{ 1,53,-0.1294,17.1792,0.13069 },
{ 1,54,-0.1325,17.3452,0.13133 },
{ 1,55,-0.1356,17.5111,0.13197 },
{ 1,56,-0.1387,17.6768,0.13261 },
{ 1,57,-0.1417,17.8422,0.13325 },
{ 1,58,-0.1447,18.0073,0.13389 },
{ 1,59,-0.1477,18.1722,0.13453 },
{ 1,60,-0.1506,18.3366,0.13517 },
{ 2,0,0.3809,3.2322,0.14171 },
{ 2,1,0.1714,4.1873,0.13724 },
{ 2,2,0.0962,5.1282,0.13 },
{ 2,3,0.0402,5.8458,0.12619 },
{ 2,4,-0.005,6.4237,0.12402 },
{ 2,5,-0.043,6.8985,0.12274 },
{ 2,6,-0.0756,7.297,0.12204 },
{ 2,7,-0.1039,7.6422,0.12178 },
{ 2,8,-0.1288,7.9487,0.12181 },
{ 2,9,-0.1507,8.2254,0.12199 },
{ 2,10,-0.17,8.48,0.12223 },
{ 2,11,-0.1872,8.7192,0.12247 },
{ 2,12,-0.2024,8.9481,0.12268 },
{ 2,13,-0.2158,9.1699,0.12283 },
{ 2,14,-0.2278,9.387,0.12294 },
{ 2,15,-0.2384,9.6008,0.12299 },
{ 2,16,-0.2478,9.8124,0.12303 },
{ 2,17,-0.2562,10.0226,0.12306 },
{ 2,18,-0.2637,10.2315,0.12309 },
{ 2,19,-0.2703,10.4393,0.12315 },
{ 2,20,-0.2762,10.6464,0.12323 },
{ 2,21,-0.2815,10.8534,0.12335 },
{ 2,22,-0.2862,11.0608,0.1235 },
{ 2,23,-0.2903,11.2688,0.12369 },
{ 2,24,-0.2941,11.4775,0.1239 },
{ 2,25,-0.2975,11.6864,0.12414 },
{ 2,26,-0.3005,11.8947,0.12441 },
{ 2,27,-0.3032,12.1015,0.12472 },
{ 2,28,-0.3057,12.3059,0.12506 },
{ 2,29,-0.308,12.5073,0.12545 },
{ 2,30,-0.3101,12.7055,0.12587 },
{ 2,31,-0.312,12.9006,0.12633 },
{ 2,32,-0.3138,13.093,0.12683 },
{ 2,33,-0.3155,13.2837,0.12737 },
{ 2,34,-0.3171,13.4731,0.12794 },
{ 2,35,-0.3186,13.6618,0.12855 },
{ 2,36,-0.3201,13.8503,0.12919 },
{ 2,37,-0.3216,14.0385,0.12988 },
{ 2,38,-0.323,14.2265,0.13059 },
{ 2,39,-0.3243,14.414,0.13135 },
{ 2,40,-0.3257,14.601,0.13213 },
{ 2,41,-0.327,14.7873,0.13293 },
{ 2,42,-0.3283,14.9727,0.13376 },
{ 2,43,-0.3296,15.1573,0.1346 },
{ 2,44,-0.3309,15.341,0.13545 },
{ 2,45,-0.3322,15.524,0.1363 },
{ 2,46,-0.3335,15.7064,0.13716 },
{ 2,47,-0.3348,15.8882,0.138 },
{ 2,48,-0.3361,16.0697,0.13884 },
{ 2,49,-0.3374,16.2511,0.13968 },
{ 2,50,-0.3387,16.4322,0.14051 },
{ 2,51,-0.34,16.6133,0.14132 },
{ 2,52,-0.3414,16.7942,0.14213 },
{ 2,53,-0.3427,16.9748,0.14293 },
{ 2,54,-0.344,17.1551,0.14371 },
{ 2,55,-0.3453,17.3347,0.14448 },
{ 2,56,-0.3466,17.5136,0.14525 },
{ 2,57,-0.3479,17.6916,0.146 },
{ 2,58,-0.3492,17.8686,0.14675 },
{ 2,59,-0.3505,18.0445,0.14748 },
{ 2,60,-0.3518,18.2193,0.14821 }
                                                };
        private static double[,] WHO2006WtHt = { 
                                               { 1,65,-0.3521,7.4327,0.08217 },
{ 1,65.5,-0.3521,7.5504,0.08214 },
{ 1,66,-0.3521,7.6673,0.08212 },
{ 1,66.5,-0.3521,7.7834,0.08212 },
{ 1,67,-0.3521,7.8986,0.08213 },
{ 1,67.5,-0.3521,8.0132,0.08214 },
{ 1,68,-0.3521,8.1272,0.08217 },
{ 1,68.5,-0.3521,8.241,0.08221 },
{ 1,69,-0.3521,8.3547,0.08226 },
{ 1,69.5,-0.3521,8.468,0.08231 },
{ 1,70,-0.3521,8.5808,0.08237 },
{ 1,70.5,-0.3521,8.6927,0.08243 },
{ 1,71,-0.3521,8.8036,0.0825 },
{ 1,71.5,-0.3521,8.9135,0.08257 },
{ 1,72,-0.3521,9.0221,0.08264 },
{ 1,72.5,-0.3521,9.1292,0.08272 },
{ 1,73,-0.3521,9.2347,0.08278 },
{ 1,73.5,-0.3521,9.339,0.08285 },
{ 1,74,-0.3521,9.442,0.08292 },
{ 1,74.5,-0.3521,9.5438,0.08298 },
{ 1,75,-0.3521,9.644,0.08303 },
{ 1,75.5,-0.3521,9.7425,0.08308 },
{ 1,76,-0.3521,9.8392,0.08312 },
{ 1,76.5,-0.3521,9.9341,0.08315 },
{ 1,77,-0.3521,10.0274,0.08317 },
{ 1,77.5,-0.3521,10.1194,0.08318 },
{ 1,78,-0.3521,10.2105,0.08317 },
{ 1,78.5,-0.3521,10.3012,0.08315 },
{ 1,79,-0.3521,10.3923,0.08311 },
{ 1,79.5,-0.3521,10.4845,0.08305 },
{ 1,80,-0.3521,10.5781,0.08298 },
{ 1,80.5,-0.3521,10.6737,0.0829 },
{ 1,81,-0.3521,10.7718,0.08279 },
{ 1,81.5,-0.3521,10.8728,0.08268 },
{ 1,82,-0.3521,10.9772,0.08255 },
{ 1,82.5,-0.3521,11.0851,0.08241 },
{ 1,83,-0.3521,11.1966,0.08225 },
{ 1,83.5,-0.3521,11.3114,0.08209 },
{ 1,84,-0.3521,11.429,0.08191 },
{ 1,84.5,-0.3521,11.549,0.08174 },
{ 1,85,-0.3521,11.6707,0.08156 },
{ 1,85.5,-0.3521,11.7937,0.08138 },
{ 1,86,-0.3521,11.9173,0.08121 },
{ 1,86.5,-0.3521,12.0411,0.08105 },
{ 1,87,-0.3521,12.1645,0.0809 },
{ 1,87.5,-0.3521,12.2871,0.08076 },
{ 1,88,-0.3521,12.4089,0.08064 },
{ 1,88.5,-0.3521,12.5298,0.08054 },
{ 1,89,-0.3521,12.6495,0.08045 },
{ 1,89.5,-0.3521,12.7683,0.08038 },
{ 1,90,-0.3521,12.8864,0.08032 },
{ 1,90.5,-0.3521,13.0038,0.08028 },
{ 1,91,-0.3521,13.1209,0.08025 },
{ 1,91.5,-0.3521,13.2376,0.08024 },
{ 1,92,-0.3521,13.3541,0.08025 },
{ 1,92.5,-0.3521,13.4705,0.08027 },
{ 1,93,-0.3521,13.587,0.08031 },
{ 1,93.5,-0.3521,13.7041,0.08036 },
{ 1,94,-0.3521,13.8217,0.08043 },
{ 1,94.5,-0.3521,13.9403,0.08051 },
{ 1,95,-0.3521,14.06,0.0806 },
{ 1,95.5,-0.3521,14.1811,0.08071 },
{ 1,96,-0.3521,14.3037,0.08083 },
{ 1,96.5,-0.3521,14.4282,0.08097 },
{ 1,97,-0.3521,14.5547,0.08112 },
{ 1,97.5,-0.3521,14.6832,0.08129 },
{ 1,98,-0.3521,14.814,0.08146 },
{ 1,98.5,-0.3521,14.9468,0.08165 },
{ 1,99,-0.3521,15.0818,0.08185 },
{ 1,99.5,-0.3521,15.2187,0.08206 },
{ 1,100,-0.3521,15.3576,0.08229 },
{ 1,100.5,-0.3521,15.4985,0.08252 },
{ 1,101,-0.3521,15.6412,0.08277 },
{ 1,101.5,-0.3521,15.7857,0.08302 },
{ 1,102,-0.3521,15.932,0.08328 },
{ 1,102.5,-0.3521,16.0801,0.08354 },
{ 1,103,-0.3521,16.2298,0.08381 },
{ 1,103.5,-0.3521,16.3812,0.08408 },
{ 1,104,-0.3521,16.5342,0.08436 },
{ 1,104.5,-0.3521,16.6889,0.08464 },
{ 1,105,-0.3521,16.8454,0.08493 },
{ 1,105.5,-0.3521,17.0036,0.08521 },
{ 1,106,-0.3521,17.1637,0.08551 },
{ 1,106.5,-0.3521,17.3256,0.0858 },
{ 1,107,-0.3521,17.4894,0.08611 },
{ 1,107.5,-0.3521,17.655,0.08641 },
{ 1,108,-0.3521,17.8226,0.08673 },
{ 1,108.5,-0.3521,17.9924,0.08704 },
{ 1,109,-0.3521,18.1645,0.08736 },
{ 1,109.5,-0.3521,18.339,0.08768 },
{ 1,110,-0.3521,18.5158,0.088 },
{ 1,110.5,-0.3521,18.6948,0.08832 },
{ 1,111,-0.3521,18.8759,0.08864 },
{ 1,111.5,-0.3521,19.059,0.08896 },
{ 1,112,-0.3521,19.2439,0.08928 },
{ 1,112.5,-0.3521,19.4304,0.0896 },
{ 1,113,-0.3521,19.6185,0.08991 },
{ 1,113.5,-0.3521,19.8081,0.09022 },
{ 1,114,-0.3521,19.999,0.09054 },
{ 1,114.5,-0.3521,20.1912,0.09085 },
{ 1,115,-0.3521,20.3846,0.09116 },
{ 1,115.5,-0.3521,20.5789,0.09147 },
{ 1,116,-0.3521,20.7741,0.09177 },
{ 1,116.5,-0.3521,20.97,0.09208 },
{ 1,117,-0.3521,21.1666,0.09239 },
{ 1,117.5,-0.3521,21.3636,0.0927 },
{ 1,118,-0.3521,21.5611,0.093 },
{ 1,118.5,-0.3521,21.7588,0.09331 },
{ 1,119,-0.3521,21.9568,0.09362 },
{ 1,119.5,-0.3521,22.1549,0.09393 },
{ 1,120,-0.3521,22.353,0.09424 },
{ 2,65,-0.3833,7.2402,0.09113 },
{ 2,65.5,-0.3833,7.3523,0.09109 },
{ 2,66,-0.3833,7.463,0.09104 },
{ 2,66.5,-0.3833,7.5724,0.09099 },
{ 2,67,-0.3833,7.6806,0.09094 },
{ 2,67.5,-0.3833,7.7874,0.09088 },
{ 2,68,-0.3833,7.893,0.09083 },
{ 2,68.5,-0.3833,7.9976,0.09077 },
{ 2,69,-0.3833,8.1012,0.09071 },
{ 2,69.5,-0.3833,8.2039,0.09065 },
{ 2,70,-0.3833,8.3058,0.09059 },
{ 2,70.5,-0.3833,8.4071,0.09053 },
{ 2,71,-0.3833,8.5078,0.09047 },
{ 2,71.5,-0.3833,8.6078,0.09041 },
{ 2,72,-0.3833,8.707,0.09035 },
{ 2,72.5,-0.3833,8.8053,0.09028 },
{ 2,73,-0.3833,8.9025,0.09022 },
{ 2,73.5,-0.3833,8.9983,0.09016 },
{ 2,74,-0.3833,9.0928,0.09009 },
{ 2,74.5,-0.3833,9.1862,0.09003 },
{ 2,75,-0.3833,9.2786,0.08996 },
{ 2,75.5,-0.3833,9.3703,0.08989 },
{ 2,76,-0.3833,9.4617,0.08983 },
{ 2,76.5,-0.3833,9.5533,0.08976 },
{ 2,77,-0.3833,9.6456,0.08969 },
{ 2,77.5,-0.3833,9.739,0.08963 },
{ 2,78,-0.3833,9.8338,0.08956 },
{ 2,78.5,-0.3833,9.9303,0.0895 },
{ 2,79,-0.3833,10.0289,0.08943 },
{ 2,79.5,-0.3833,10.1298,0.08937 },
{ 2,80,-0.3833,10.2332,0.08932 },
{ 2,80.5,-0.3833,10.3393,0.08926 },
{ 2,81,-0.3833,10.4477,0.08921 },
{ 2,81.5,-0.3833,10.5586,0.08916 },
{ 2,82,-0.3833,10.6719,0.08912 },
{ 2,82.5,-0.3833,10.7874,0.08908 },
{ 2,83,-0.3833,10.9051,0.08905 },
{ 2,83.5,-0.3833,11.0248,0.08902 },
{ 2,84,-0.3833,11.1462,0.08899 },
{ 2,84.5,-0.3833,11.2691,0.08897 },
{ 2,85,-0.3833,11.3934,0.08896 },
{ 2,85.5,-0.3833,11.5186,0.08895 },
{ 2,86,-0.3833,11.6444,0.08895 },
{ 2,86.5,-0.3833,11.7705,0.08895 },
{ 2,87,-0.3833,11.8965,0.08896 },
{ 2,87.5,-0.3833,12.0223,0.08897 },
{ 2,88,-0.3833,12.1478,0.08899 },
{ 2,88.5,-0.3833,12.2729,0.08901 },
{ 2,89,-0.3833,12.3976,0.08904 },
{ 2,89.5,-0.3833,12.522,0.08907 },
{ 2,90,-0.3833,12.6461,0.08911 },
{ 2,90.5,-0.3833,12.77,0.08915 },
{ 2,91,-0.3833,12.8939,0.0892 },
{ 2,91.5,-0.3833,13.0177,0.08925 },
{ 2,92,-0.3833,13.1415,0.08931 },
{ 2,92.5,-0.3833,13.2654,0.08937 },
{ 2,93,-0.3833,13.3896,0.08944 },
{ 2,93.5,-0.3833,13.5142,0.08951 },
{ 2,94,-0.3833,13.6393,0.08959 },
{ 2,94.5,-0.3833,13.765,0.08967 },
{ 2,95,-0.3833,13.8914,0.08975 },
{ 2,95.5,-0.3833,14.0186,0.08984 },
{ 2,96,-0.3833,14.1466,0.08994 },
{ 2,96.5,-0.3833,14.2757,0.09004 },
{ 2,97,-0.3833,14.4059,0.09015 },
{ 2,97.5,-0.3833,14.5376,0.09026 },
{ 2,98,-0.3833,14.671,0.09037 },
{ 2,98.5,-0.3833,14.8062,0.09049 },
{ 2,99,-0.3833,14.9434,0.09062 },
{ 2,99.5,-0.3833,15.0828,0.09075 },
{ 2,100,-0.3833,15.2246,0.09088 },
{ 2,100.5,-0.3833,15.3687,0.09102 },
{ 2,101,-0.3833,15.5154,0.09116 },
{ 2,101.5,-0.3833,15.6646,0.09131 },
{ 2,102,-0.3833,15.8164,0.09146 },
{ 2,102.5,-0.3833,15.9707,0.09161 },
{ 2,103,-0.3833,16.1276,0.09177 },
{ 2,103.5,-0.3833,16.287,0.09193 },
{ 2,104,-0.3833,16.4488,0.09209 },
{ 2,104.5,-0.3833,16.6131,0.09226 },
{ 2,105,-0.3833,16.78,0.09243 },
{ 2,105.5,-0.3833,16.9496,0.09261 },
{ 2,106,-0.3833,17.122,0.09278 },
{ 2,106.5,-0.3833,17.2973,0.09296 },
{ 2,107,-0.3833,17.4755,0.09315 },
{ 2,107.5,-0.3833,17.6567,0.09333 },
{ 2,108,-0.3833,17.8407,0.09352 },
{ 2,108.5,-0.3833,18.0277,0.09371 },
{ 2,109,-0.3833,18.2174,0.0939 },
{ 2,109.5,-0.3833,18.4096,0.09409 },
{ 2,110,-0.3833,18.6043,0.09428 },
{ 2,110.5,-0.3833,18.8015,0.09448 },
{ 2,111,-0.3833,19.0009,0.09467 },
{ 2,111.5,-0.3833,19.2024,0.09487 },
{ 2,112,-0.3833,19.406,0.09507 },
{ 2,112.5,-0.3833,19.6116,0.09527 },
{ 2,113,-0.3833,19.819,0.09546 },
{ 2,113.5,-0.3833,20.028,0.09566 },
{ 2,114,-0.3833,20.2385,0.09586 },
{ 2,114.5,-0.3833,20.4502,0.09606 },
{ 2,115,-0.3833,20.6629,0.09626 },
{ 2,115.5,-0.3833,20.8766,0.09646 },
{ 2,116,-0.3833,21.0909,0.09666 },
{ 2,116.5,-0.3833,21.3059,0.09686 },
{ 2,117,-0.3833,21.5213,0.09707 },
{ 2,117.5,-0.3833,21.737,0.09727 },
{ 2,118,-0.3833,21.9529,0.09747 },
{ 2,118.5,-0.3833,22.169,0.09767 },
{ 2,119,-0.3833,22.3851,0.09788 },
{ 2,119.5,-0.3833,22.6012,0.09808 },
{ 2,120,-0.3833,22.8173,0.09828 }
                                               };
        private static double[,] WHO2006WtLgth = { 
                                                 { 1,45,-0.3521,2.441,0.09182 },
{ 1,45.5,-0.3521,2.5244,0.09153 },
{ 1,46,-0.3521,2.6077,0.09124 },
{ 1,46.5,-0.3521,2.6913,0.09094 },
{ 1,47,-0.3521,2.7755,0.09065 },
{ 1,47.5,-0.3521,2.8609,0.09036 },
{ 1,48,-0.3521,2.948,0.09007 },
{ 1,48.5,-0.3521,3.0377,0.08977 },
{ 1,49,-0.3521,3.1308,0.08948 },
{ 1,49.5,-0.3521,3.2276,0.08919 },
{ 1,50,-0.3521,3.3278,0.0889 },
{ 1,50.5,-0.3521,3.4311,0.08861 },
{ 1,51,-0.3521,3.5376,0.08831 },
{ 1,51.5,-0.3521,3.6477,0.08801 },
{ 1,52,-0.3521,3.762,0.08771 },
{ 1,52.5,-0.3521,3.8814,0.08741 },
{ 1,53,-0.3521,4.006,0.08711 },
{ 1,53.5,-0.3521,4.1354,0.08681 },
{ 1,54,-0.3521,4.2693,0.08651 },
{ 1,54.5,-0.3521,4.4066,0.08621 },
{ 1,55,-0.3521,4.5467,0.08592 },
{ 1,55.5,-0.3521,4.6892,0.08563 },
{ 1,56,-0.3521,4.8338,0.08535 },
{ 1,56.5,-0.3521,4.9796,0.08507 },
{ 1,57,-0.3521,5.1259,0.08481 },
{ 1,57.5,-0.3521,5.2721,0.08455 },
{ 1,58,-0.3521,5.418,0.0843 },
{ 1,58.5,-0.3521,5.5632,0.08406 },
{ 1,59,-0.3521,5.7074,0.08383 },
{ 1,59.5,-0.3521,5.8501,0.08362 },
{ 1,60,-0.3521,5.9907,0.08342 },
{ 1,60.5,-0.3521,6.1284,0.08324 },
{ 1,61,-0.3521,6.2632,0.08308 },
{ 1,61.5,-0.3521,6.3954,0.08292 },
{ 1,62,-0.3521,6.5251,0.08279 },
{ 1,62.5,-0.3521,6.6527,0.08266 },
{ 1,63,-0.3521,6.7786,0.08255 },
{ 1,63.5,-0.3521,6.9028,0.08245 },
{ 1,64,-0.3521,7.0255,0.08236 },
{ 1,64.5,-0.3521,7.1467,0.08229 },
{ 1,65,-0.3521,7.2666,0.08223 },
{ 1,65.5,-0.3521,7.3854,0.08218 },
{ 1,66,-0.3521,7.5034,0.08215 },
{ 1,66.5,-0.3521,7.6206,0.08213 },
{ 1,67,-0.3521,7.737,0.08212 },
{ 1,67.5,-0.3521,7.8526,0.08212 },
{ 1,68,-0.3521,7.9674,0.08214 },
{ 1,68.5,-0.3521,8.0816,0.08216 },
{ 1,69,-0.3521,8.1955,0.08219 },
{ 1,69.5,-0.3521,8.3092,0.08224 },
{ 1,70,-0.3521,8.4227,0.08229 },
{ 1,70.5,-0.3521,8.5358,0.08235 },
{ 1,71,-0.3521,8.648,0.08241 },
{ 1,71.5,-0.3521,8.7594,0.08248 },
{ 1,72,-0.3521,8.8697,0.08254 },
{ 1,72.5,-0.3521,8.9788,0.08262 },
{ 1,73,-0.3521,9.0865,0.08269 },
{ 1,73.5,-0.3521,9.1927,0.08276 },
{ 1,74,-0.3521,9.2974,0.08283 },
{ 1,74.5,-0.3521,9.401,0.08289 },
{ 1,75,-0.3521,9.5032,0.08295 },
{ 1,75.5,-0.3521,9.6041,0.08301 },
{ 1,76,-0.3521,9.7033,0.08307 },
{ 1,76.5,-0.3521,9.8007,0.08311 },
{ 1,77,-0.3521,9.8963,0.08314 },
{ 1,77.5,-0.3521,9.9902,0.08317 },
{ 1,78,-0.3521,10.0827,0.08318 },
{ 1,78.5,-0.3521,10.1741,0.08318 },
{ 1,79,-0.3521,10.2649,0.08316 },
{ 1,79.5,-0.3521,10.3558,0.08313 },
{ 1,80,-0.3521,10.4475,0.08308 },
{ 1,80.5,-0.3521,10.5405,0.08301 },
{ 1,81,-0.3521,10.6352,0.08293 },
{ 1,81.5,-0.3521,10.7322,0.08284 },
{ 1,82,-0.3521,10.8321,0.08273 },
{ 1,82.5,-0.3521,10.935,0.0826 },
{ 1,83,-0.3521,11.0415,0.08246 },
{ 1,83.5,-0.3521,11.1516,0.08231 },
{ 1,84,-0.3521,11.2651,0.08215 },
{ 1,84.5,-0.3521,11.3817,0.08198 },
{ 1,85,-0.3521,11.5007,0.08181 },
{ 1,85.5,-0.3521,11.6218,0.08163 },
{ 1,86,-0.3521,11.7444,0.08145 },
{ 1,86.5,-0.3521,11.8678,0.08128 },
{ 1,87,-0.3521,11.9916,0.08111 },
{ 1,87.5,-0.3521,12.1152,0.08096 },
{ 1,88,-0.3521,12.2382,0.08082 },
{ 1,88.5,-0.3521,12.3603,0.08069 },
{ 1,89,-0.3521,12.4815,0.08058 },
{ 1,89.5,-0.3521,12.6017,0.08048 },
{ 1,90,-0.3521,12.7209,0.08041 },
{ 1,90.5,-0.3521,12.8392,0.08034 },
{ 1,91,-0.3521,12.9569,0.0803 },
{ 1,91.5,-0.3521,13.0742,0.08026 },
{ 1,92,-0.3521,13.191,0.08025 },
{ 1,92.5,-0.3521,13.3075,0.08025 },
{ 1,93,-0.3521,13.4239,0.08026 },
{ 1,93.5,-0.3521,13.5404,0.08029 },
{ 1,94,-0.3521,13.6572,0.08034 },
{ 1,94.5,-0.3521,13.7746,0.0804 },
{ 1,95,-0.3521,13.8928,0.08047 },
{ 1,95.5,-0.3521,14.012,0.08056 },
{ 1,96,-0.3521,14.1325,0.08067 },
{ 1,96.5,-0.3521,14.2544,0.08078 },
{ 1,97,-0.3521,14.3782,0.08092 },
{ 1,97.5,-0.3521,14.5038,0.08106 },
{ 1,98,-0.3521,14.6316,0.08122 },
{ 1,98.5,-0.3521,14.7614,0.08139 },
{ 1,99,-0.3521,14.8934,0.08157 },
{ 1,99.5,-0.3521,15.0275,0.08177 },
{ 1,100,-0.3521,15.1637,0.08198 },
{ 1,100.5,-0.3521,15.3018,0.0822 },
{ 1,101,-0.3521,15.4419,0.08243 },
{ 1,101.5,-0.3521,15.5838,0.08267 },
{ 1,102,-0.3521,15.7276,0.08292 },
{ 1,102.5,-0.3521,15.8732,0.08317 },
{ 1,103,-0.3521,16.0206,0.08343 },
{ 1,103.5,-0.3521,16.1697,0.0837 },
{ 1,104,-0.3521,16.3204,0.08397 },
{ 1,104.5,-0.3521,16.4728,0.08425 },
{ 1,105,-0.3521,16.6268,0.08453 },
{ 1,105.5,-0.3521,16.7826,0.08481 },
{ 1,106,-0.3521,16.9401,0.0851 },
{ 1,106.5,-0.3521,17.0995,0.08539 },
{ 1,107,-0.3521,17.2607,0.08568 },
{ 1,107.5,-0.3521,17.4237,0.08599 },
{ 1,108,-0.3521,17.5885,0.08629 },
{ 1,108.5,-0.3521,17.7553,0.0866 },
{ 1,109,-0.3521,17.9242,0.08691 },
{ 1,109.5,-0.3521,18.0954,0.08723 },
{ 1,110,-0.3521,18.2689,0.08755 },
{ 2,45,-0.3833,2.4607,0.09029 },
{ 2,45.5,-0.3833,2.5457,0.09033 },
{ 2,46,-0.3833,2.6306,0.09037 },
{ 2,46.5,-0.3833,2.7155,0.0904 },
{ 2,47,-0.3833,2.8007,0.09044 },
{ 2,47.5,-0.3833,2.8867,0.09048 },
{ 2,48,-0.3833,2.9741,0.09052 },
{ 2,48.5,-0.3833,3.0636,0.09056 },
{ 2,49,-0.3833,3.156,0.0906 },
{ 2,49.5,-0.3833,3.252,0.09064 },
{ 2,50,-0.3833,3.3518,0.09068 },
{ 2,50.5,-0.3833,3.4557,0.09072 },
{ 2,51,-0.3833,3.5636,0.09076 },
{ 2,51.5,-0.3833,3.6754,0.0908 },
{ 2,52,-0.3833,3.7911,0.09085 },
{ 2,52.5,-0.3833,3.9105,0.09089 },
{ 2,53,-0.3833,4.0332,0.09093 },
{ 2,53.5,-0.3833,4.1591,0.09098 },
{ 2,54,-0.3833,4.2875,0.09102 },
{ 2,54.5,-0.3833,4.4179,0.09106 },
{ 2,55,-0.3833,4.5498,0.0911 },
{ 2,55.5,-0.3833,4.6827,0.09114 },
{ 2,56,-0.3833,4.8162,0.09118 },
{ 2,56.5,-0.3833,4.95,0.09121 },
{ 2,57,-0.3833,5.0837,0.09125 },
{ 2,57.5,-0.3833,5.2173,0.09128 },
{ 2,58,-0.3833,5.3507,0.0913 },
{ 2,58.5,-0.3833,5.4834,0.09132 },
{ 2,59,-0.3833,5.6151,0.09134 },
{ 2,59.5,-0.3833,5.7454,0.09135 },
{ 2,60,-0.3833,5.8742,0.09136 },
{ 2,60.5,-0.3833,6.0014,0.09137 },
{ 2,61,-0.3833,6.127,0.09137 },
{ 2,61.5,-0.3833,6.2511,0.09136 },
{ 2,62,-0.3833,6.3738,0.09135 },
{ 2,62.5,-0.3833,6.4948,0.09133 },
{ 2,63,-0.3833,6.6144,0.09131 },
{ 2,63.5,-0.3833,6.7328,0.09129 },
{ 2,64,-0.3833,6.8501,0.09126 },
{ 2,64.5,-0.3833,6.9662,0.09123 },
{ 2,65,-0.3833,7.0812,0.09119 },
{ 2,65.5,-0.3833,7.195,0.09115 },
{ 2,66,-0.3833,7.3076,0.0911 },
{ 2,66.5,-0.3833,7.4189,0.09106 },
{ 2,67,-0.3833,7.5288,0.09101 },
{ 2,67.5,-0.3833,7.6375,0.09096 },
{ 2,68,-0.3833,7.7448,0.0909 },
{ 2,68.5,-0.3833,7.8509,0.09085 },
{ 2,69,-0.3833,7.9559,0.09079 },
{ 2,69.5,-0.3833,8.0599,0.09074 },
{ 2,70,-0.3833,8.163,0.09068 },
{ 2,70.5,-0.3833,8.2651,0.09062 },
{ 2,71,-0.3833,8.3666,0.09056 },
{ 2,71.5,-0.3833,8.4676,0.0905 },
{ 2,72,-0.3833,8.5679,0.09043 },
{ 2,72.5,-0.3833,8.6674,0.09037 },
{ 2,73,-0.3833,8.7661,0.09031 },
{ 2,73.5,-0.3833,8.8638,0.09025 },
{ 2,74,-0.3833,8.9601,0.09018 },
{ 2,74.5,-0.3833,9.0552,0.09012 },
{ 2,75,-0.3833,9.149,0.09005 },
{ 2,75.5,-0.3833,9.2418,0.08999 },
{ 2,76,-0.3833,9.3337,0.08992 },
{ 2,76.5,-0.3833,9.4252,0.08985 },
{ 2,77,-0.3833,9.5166,0.08979 },
{ 2,77.5,-0.3833,9.6086,0.08972 },
{ 2,78,-0.3833,9.7015,0.08965 },
{ 2,78.5,-0.3833,9.7957,0.08959 },
{ 2,79,-0.3833,9.8915,0.08952 },
{ 2,79.5,-0.3833,9.9892,0.08946 },
{ 2,80,-0.3833,10.0891,0.0894 },
{ 2,80.5,-0.3833,10.1916,0.08934 },
{ 2,81,-0.3833,10.2965,0.08928 },
{ 2,81.5,-0.3833,10.4041,0.08923 },
{ 2,82,-0.3833,10.514,0.08918 },
{ 2,82.5,-0.3833,10.6263,0.08914 },
{ 2,83,-0.3833,10.741,0.0891 },
{ 2,83.5,-0.3833,10.8578,0.08906 },
{ 2,84,-0.3833,10.9767,0.08903 },
{ 2,84.5,-0.3833,11.0974,0.089 },
{ 2,85,-0.3833,11.2198,0.08898 },
{ 2,85.5,-0.3833,11.3435,0.08897 },
{ 2,86,-0.3833,11.4684,0.08895 },
{ 2,86.5,-0.3833,11.594,0.08895 },
{ 2,87,-0.3833,11.7201,0.08895 },
{ 2,87.5,-0.3833,11.8461,0.08895 },
{ 2,88,-0.3833,11.972,0.08896 },
{ 2,88.5,-0.3833,12.0976,0.08898 },
{ 2,89,-0.3833,12.2229,0.089 },
{ 2,89.5,-0.3833,12.3477,0.08903 },
{ 2,90,-0.3833,12.4723,0.08906 },
{ 2,90.5,-0.3833,12.5965,0.08909 },
{ 2,91,-0.3833,12.7205,0.08913 },
{ 2,91.5,-0.3833,12.8443,0.08918 },
{ 2,92,-0.3833,12.9681,0.08923 },
{ 2,92.5,-0.3833,13.092,0.08928 },
{ 2,93,-0.3833,13.2158,0.08934 },
{ 2,93.5,-0.3833,13.3399,0.08941 },
{ 2,94,-0.3833,13.4643,0.08948 },
{ 2,94.5,-0.3833,13.5892,0.08955 },
{ 2,95,-0.3833,13.7146,0.08963 },
{ 2,95.5,-0.3833,13.8408,0.08972 },
{ 2,96,-0.3833,13.9676,0.08981 },
{ 2,96.5,-0.3833,14.0953,0.0899 },
{ 2,97,-0.3833,14.2239,0.09 },
{ 2,97.5,-0.3833,14.3537,0.0901 },
{ 2,98,-0.3833,14.4848,0.09021 },
{ 2,98.5,-0.3833,14.6174,0.09033 },
{ 2,99,-0.3833,14.7519,0.09044 },
{ 2,99.5,-0.3833,14.8882,0.09057 },
{ 2,100,-0.3833,15.0267,0.09069 },
{ 2,100.5,-0.3833,15.1676,0.09083 },
{ 2,101,-0.3833,15.3108,0.09096 },
{ 2,101.5,-0.3833,15.4564,0.0911 },
{ 2,102,-0.3833,15.6046,0.09125 },
{ 2,102.5,-0.3833,15.7553,0.09139 },
{ 2,103,-0.3833,15.9087,0.09155 },
{ 2,103.5,-0.3833,16.0645,0.0917 },
{ 2,104,-0.3833,16.2229,0.09186 },
{ 2,104.5,-0.3833,16.3837,0.09203 },
{ 2,105,-0.3833,16.547,0.09219 },
{ 2,105.5,-0.3833,16.7129,0.09236 },
{ 2,106,-0.3833,16.8814,0.09254 },
{ 2,106.5,-0.3833,17.0527,0.09271 },
{ 2,107,-0.3833,17.2269,0.09289 },
{ 2,107.5,-0.3833,17.4039,0.09307 },
{ 2,108,-0.3833,17.5839,0.09326 },
{ 2,108.5,-0.3833,17.7668,0.09344 },
{ 2,109,-0.3833,17.9526,0.09363 },
{ 2,109.5,-0.3833,18.1412,0.09382 },
{ 2,110,-0.3833,18.3324,0.09401 }
                                                 };
        private static double[,] WHO2006MUAC = { 
                                               { 1,3,0.3928,13.4817,0.07475 },
{ 1,4,0.3475,13.8097,0.07523 },
{ 1,5,0.3092,14.0585,0.07566 },
{ 1,6,0.2755,14.2389,0.07601 },
{ 1,7,0.2453,14.3678,0.07629 },
{ 1,8,0.2179,14.4591,0.0765 },
{ 1,9,0.1925,14.5245,0.07665 },
{ 1,10,0.169,14.5733,0.07676 },
{ 1,11,0.1469,14.6119,0.07683 },
{ 1,12,0.1261,14.6449,0.07689 },
{ 1,13,0.1064,14.6758,0.07694 },
{ 1,14,0.0876,14.7063,0.07699 },
{ 1,15,0.0697,14.738,0.07703 },
{ 1,16,0.0526,14.7723,0.07707 },
{ 1,17,0.0362,14.8095,0.0771 },
{ 1,18,0.0204,14.8496,0.07713 },
{ 1,19,0.0051,14.8926,0.07717 },
{ 1,20,-0.0097,14.9388,0.07721 },
{ 1,21,-0.0239,14.9883,0.07725 },
{ 1,22,-0.0378,15.041,0.07731 },
{ 1,23,-0.0512,15.0964,0.07738 },
{ 1,24,-0.0643,15.1536,0.07746 },
{ 1,25,-0.077,15.2115,0.07755 },
{ 1,26,-0.0894,15.2693,0.07767 },
{ 1,27,-0.1014,15.3259,0.0778 },
{ 1,28,-0.1132,15.3808,0.07794 },
{ 1,29,-0.1248,15.4336,0.0781 },
{ 1,30,-0.136,15.4839,0.07827 },
{ 1,31,-0.147,15.5317,0.07846 },
{ 1,32,-0.1578,15.5771,0.07866 },
{ 1,33,-0.1684,15.6201,0.07887 },
{ 1,34,-0.1788,15.6611,0.07909 },
{ 1,35,-0.189,15.7003,0.07933 },
{ 1,36,-0.1989,15.738,0.07956 },
{ 1,37,-0.2087,15.7745,0.07981 },
{ 1,38,-0.2184,15.8101,0.08006 },
{ 1,39,-0.2278,15.845,0.08032 },
{ 1,40,-0.2372,15.8793,0.08058 },
{ 1,41,-0.2463,15.9132,0.08085 },
{ 1,42,-0.2553,15.9467,0.08112 },
{ 1,43,-0.2642,15.9797,0.08139 },
{ 1,44,-0.273,16.0124,0.08166 },
{ 1,45,-0.2816,16.0447,0.08194 },
{ 1,46,-0.2901,16.0767,0.08222 },
{ 1,47,-0.2985,16.1085,0.0825 },
{ 1,48,-0.3067,16.14,0.08278 },
{ 1,49,-0.3149,16.1714,0.08307 },
{ 1,50,-0.3229,16.2027,0.08335 },
{ 1,51,-0.3309,16.234,0.08364 },
{ 1,52,-0.3387,16.2654,0.08392 },
{ 1,53,-0.3464,16.2968,0.08421 },
{ 1,54,-0.3541,16.3283,0.0845 },
{ 1,55,-0.3616,16.3599,0.08479 },
{ 1,56,-0.3691,16.3916,0.08508 },
{ 1,57,-0.3765,16.4233,0.08537 },
{ 1,58,-0.3838,16.4551,0.08566 },
{ 1,59,-0.391,16.4871,0.08595 },
{ 1,60,-0.3981,16.5191,0.08624 },
{ 2,3,-0.1733,13.0284,0.08263 },
{ 2,4,-0.1733,13.3649,0.08298 },
{ 2,5,-0.1733,13.6061,0.08325 },
{ 2,6,-0.1733,13.7771,0.08343 },
{ 2,7,-0.1733,13.9018,0.08352 },
{ 2,8,-0.1733,13.9952,0.08351 },
{ 2,9,-0.1733,14.0665,0.08342 },
{ 2,10,-0.1733,14.1217,0.08326 },
{ 2,11,-0.1733,14.1667,0.08305 },
{ 2,12,-0.1733,14.2065,0.0828 },
{ 2,13,-0.1733,14.2455,0.08254 },
{ 2,14,-0.1733,14.2859,0.08227 },
{ 2,15,-0.1733,14.3289,0.08202 },
{ 2,16,-0.1733,14.3752,0.08179 },
{ 2,17,-0.1733,14.4254,0.0816 },
{ 2,18,-0.1733,14.4795,0.08143 },
{ 2,19,-0.1733,14.5372,0.08131 },
{ 2,20,-0.1733,14.5987,0.08123 },
{ 2,21,-0.1733,14.6639,0.08118 },
{ 2,22,-0.1733,14.7328,0.08118 },
{ 2,23,-0.1733,14.8049,0.08121 },
{ 2,24,-0.1733,14.8795,0.08127 },
{ 2,25,-0.1733,14.9559,0.08136 },
{ 2,26,-0.1733,15.0327,0.08147 },
{ 2,27,-0.1733,15.1085,0.08161 },
{ 2,28,-0.1733,15.1817,0.08178 },
{ 2,29,-0.1733,15.2514,0.08196 },
{ 2,30,-0.1733,15.3168,0.08217 },
{ 2,31,-0.1733,15.3779,0.0824 },
{ 2,32,-0.1733,15.4351,0.08265 },
{ 2,33,-0.1733,15.4895,0.08292 },
{ 2,34,-0.1733,15.5423,0.0832 },
{ 2,35,-0.1733,15.5941,0.08351 },
{ 2,36,-0.1733,15.6456,0.08383 },
{ 2,37,-0.1733,15.6969,0.08416 },
{ 2,38,-0.1733,15.7483,0.08451 },
{ 2,39,-0.1733,15.7997,0.08487 },
{ 2,40,-0.1733,15.8509,0.08525 },
{ 2,41,-0.1733,15.9016,0.08563 },
{ 2,42,-0.1733,15.9518,0.08602 },
{ 2,43,-0.1733,16.0016,0.08642 },
{ 2,44,-0.1733,16.0509,0.08683 },
{ 2,45,-0.1733,16.1001,0.08723 },
{ 2,46,-0.1733,16.1491,0.08765 },
{ 2,47,-0.1733,16.1983,0.08806 },
{ 2,48,-0.1733,16.2477,0.08848 },
{ 2,49,-0.1733,16.2974,0.0889 },
{ 2,50,-0.1733,16.3475,0.08932 },
{ 2,51,-0.1733,16.3981,0.08974 },
{ 2,52,-0.1733,16.449,0.09016 },
{ 2,53,-0.1733,16.5001,0.09057 },
{ 2,54,-0.1733,16.5514,0.09099 },
{ 2,55,-0.1733,16.6026,0.0914 },
{ 2,56,-0.1733,16.6534,0.09181 },
{ 2,57,-0.1733,16.7039,0.09221 },
{ 2,58,-0.1733,16.7539,0.09262 },
{ 2,59,-0.1733,16.8034,0.09301 },
{ 2,60,-0.1733,16.8526,0.09341 }
                                               };
        private static double[,] WHO2006BMI = { 
                                             { 1,0,-0.3053,13.4069,0.0956 },
{ 1,1,0.2708,14.9441,0.09027 },
{ 1,2,0.1118,16.3195,0.08677 },
{ 1,3,0.0068,16.8987,0.08495 },
{ 1,4,-0.0727,17.1579,0.08378 },
{ 1,5,-0.137,17.2919,0.08296 },
{ 1,6,-0.1913,17.3422,0.08234 },
{ 1,7,-0.2385,17.3288,0.08183 },
{ 1,8,-0.2802,17.2647,0.0814 },
{ 1,9,-0.3176,17.1662,0.08102 },
{ 1,10,-0.3516,17.0488,0.08068 },
{ 1,11,-0.3828,16.9239,0.08037 },
{ 1,12,-0.4115,16.7981,0.08009 },
{ 1,13,-0.4382,16.6743,0.07982 },
{ 1,14,-0.463,16.5548,0.07958 },
{ 1,15,-0.4863,16.4409,0.07935 },
{ 1,16,-0.5082,16.3335,0.07913 },
{ 1,17,-0.5289,16.2329,0.07892 },
{ 1,18,-0.5484,16.1392,0.07873 },
{ 1,19,-0.5669,16.0528,0.07854 },
{ 1,20,-0.5846,15.9743,0.07836 },
{ 1,21,-0.6014,15.9039,0.07818 },
{ 1,22,-0.6174,15.8412,0.07802 },
{ 1,23,-0.6328,15.7852,0.07786 },
{ 1,24,-0.6473,15.7356,0.07771 },
{ 1,24,-0.6187,16.0189,0.07785 },
{ 1,25,-0.584,15.98,0.07792 },
{ 1,26,-0.5497,15.9414,0.078 },
{ 1,27,-0.5166,15.9036,0.07808 },
{ 1,28,-0.485,15.8667,0.07818 },
{ 1,29,-0.4552,15.8306,0.07829 },
{ 1,30,-0.4274,15.7953,0.07841 },
{ 1,31,-0.4016,15.7606,0.07854 },
{ 1,32,-0.3782,15.7267,0.07867 },
{ 1,33,-0.3572,15.6934,0.07882 },
{ 1,34,-0.3388,15.661,0.07897 },
{ 1,35,-0.3231,15.6294,0.07914 },
{ 1,36,-0.3101,15.5988,0.07931 },
{ 1,37,-0.3,15.5693,0.0795 },
{ 1,38,-0.2927,15.541,0.07969 },
{ 1,39,-0.2884,15.514,0.0799 },
{ 1,40,-0.2869,15.4885,0.08012 },
{ 1,41,-0.2881,15.4645,0.08036 },
{ 1,42,-0.2919,15.442,0.08061 },
{ 1,43,-0.2981,15.421,0.08087 },
{ 1,44,-0.3067,15.4013,0.08115 },
{ 1,45,-0.3174,15.3827,0.08144 },
{ 1,46,-0.3303,15.3652,0.08174 },
{ 1,47,-0.3452,15.3485,0.08205 },
{ 1,48,-0.3622,15.3326,0.08238 },
{ 1,49,-0.3811,15.3174,0.08272 },
{ 1,50,-0.4019,15.3029,0.08307 },
{ 1,51,-0.4245,15.2891,0.08343 },
{ 1,52,-0.4488,15.2759,0.0838 },
{ 1,53,-0.4747,15.2633,0.08418 },
{ 1,54,-0.5019,15.2514,0.08457 },
{ 1,55,-0.5303,15.24,0.08496 },
{ 1,56,-0.5599,15.2291,0.08536 },
{ 1,57,-0.5905,15.2188,0.08577 },
{ 1,58,-0.6223,15.2091,0.08617 },
{ 1,59,-0.6552,15.2,0.08659 },
{ 1,60,-0.6892,15.1916,0.087 },
{ 2,0,-0.0631,13.3363,0.09272 },
{ 2,1,0.3448,14.5679,0.09556 },
{ 2,2,0.1749,15.7679,0.09371 },
{ 2,3,0.0643,16.3574,0.09254 },
{ 2,4,-0.0191,16.6703,0.09166 },
{ 2,5,-0.0864,16.8386,0.09096 },
{ 2,6,-0.1429,16.9083,0.09036 },
{ 2,7,-0.1916,16.902,0.08984 },
{ 2,8,-0.2344,16.8404,0.08939 },
{ 2,9,-0.2725,16.7406,0.08898 },
{ 2,10,-0.3068,16.6184,0.08861 },
{ 2,11,-0.3381,16.4875,0.08828 },
{ 2,12,-0.3667,16.3568,0.08797 },
{ 2,13,-0.3932,16.2311,0.08768 },
{ 2,14,-0.4177,16.1128,0.08741 },
{ 2,15,-0.4407,16.0028,0.08716 },
{ 2,16,-0.4623,15.9017,0.08693 },
{ 2,17,-0.4825,15.8096,0.08671 },
{ 2,18,-0.5017,15.7263,0.0865 },
{ 2,19,-0.5199,15.6517,0.0863 },
{ 2,20,-0.5372,15.5855,0.08612 },
{ 2,21,-0.5537,15.5278,0.08594 },
{ 2,22,-0.5695,15.4787,0.08577 },
{ 2,23,-0.5846,15.438,0.0856 },
{ 2,24,-0.5989,15.4052,0.08545 },
{ 2,24,-0.5684,15.6881,0.08454 },
{ 2,25,-0.5684,15.659,0.08452 },
{ 2,26,-0.5684,15.6308,0.08449 },
{ 2,27,-0.5684,15.6037,0.08446 },
{ 2,28,-0.5684,15.5777,0.08444 },
{ 2,29,-0.5684,15.5523,0.08443 },
{ 2,30,-0.5684,15.5276,0.08444 },
{ 2,31,-0.5684,15.5034,0.08448 },
{ 2,32,-0.5684,15.4798,0.08455 },
{ 2,33,-0.5684,15.4572,0.08467 },
{ 2,34,-0.5684,15.4356,0.08484 },
{ 2,35,-0.5684,15.4155,0.08506 },
{ 2,36,-0.5684,15.3968,0.08535 },
{ 2,37,-0.5684,15.3796,0.08569 },
{ 2,38,-0.5684,15.3638,0.08609 },
{ 2,39,-0.5684,15.3493,0.08654 },
{ 2,40,-0.5684,15.3358,0.08704 },
{ 2,41,-0.5684,15.3233,0.08757 },
{ 2,42,-0.5684,15.3116,0.08813 },
{ 2,43,-0.5684,15.3007,0.08872 },
{ 2,44,-0.5684,15.2905,0.08931 },
{ 2,45,-0.5684,15.2814,0.08991 },
{ 2,46,-0.5684,15.2732,0.09051 },
{ 2,47,-0.5684,15.2661,0.0911 },
{ 2,48,-0.5684,15.2602,0.09168 },
{ 2,49,-0.5684,15.2556,0.09227 },
{ 2,50,-0.5684,15.2523,0.09286 },
{ 2,51,-0.5684,15.2503,0.09345 },
{ 2,52,-0.5684,15.2496,0.09403 },
{ 2,53,-0.5684,15.2502,0.0946 },
{ 2,54,-0.5684,15.2519,0.09515 },
{ 2,55,-0.5684,15.2544,0.09568 },
{ 2,56,-0.5684,15.2575,0.09618 },
{ 2,57,-0.5684,15.2612,0.09665 },
{ 2,58,-0.5684,15.2653,0.09709 },
{ 2,59,-0.5684,15.2698,0.0975 },
{ 2,60,-0.5684,15.2747,0.09789 }
                                              };
        private static double[,] WHO2006Head = { 
                                               { 1,0,1,34.4618,0.03686 },
{ 1,1,1,37.2759,0.03133 },
{ 1,2,1,39.1285,0.02997 },
{ 1,3,1,40.5135,0.02918 },
{ 1,4,1,41.6317,0.02868 },
{ 1,5,1,42.5576,0.02837 },
{ 1,6,1,43.3306,0.02817 },
{ 1,7,1,43.9803,0.02804 },
{ 1,8,1,44.53,0.02796 },
{ 1,9,1,44.9998,0.02792 },
{ 1,10,1,45.4051,0.0279 },
{ 1,11,1,45.7573,0.02789 },
{ 1,12,1,46.0661,0.02789 },
{ 1,13,1,46.3395,0.02789 },
{ 1,14,1,46.5844,0.02791 },
{ 1,15,1,46.806,0.02792 },
{ 1,16,1,47.0088,0.02795 },
{ 1,17,1,47.1962,0.02797 },
{ 1,18,1,47.3711,0.028 },
{ 1,19,1,47.5357,0.02803 },
{ 1,20,1,47.6919,0.02806 },
{ 1,21,1,47.8408,0.0281 },
{ 1,22,1,47.9833,0.02813 },
{ 1,23,1,48.1201,0.02817 },
{ 1,24,1,48.2515,0.02821 },
{ 1,25,1,48.3777,0.02825 },
{ 1,26,1,48.4989,0.0283 },
{ 1,27,1,48.6151,0.02834 },
{ 1,28,1,48.7264,0.02838 },
{ 1,29,1,48.8331,0.02842 },
{ 1,30,1,48.9351,0.02847 },
{ 1,31,1,49.0327,0.02851 },
{ 1,32,1,49.126,0.02855 },
{ 1,33,1,49.2153,0.02859 },
{ 1,34,1,49.3007,0.02863 },
{ 1,35,1,49.3826,0.02867 },
{ 1,36,1,49.4612,0.02871 },
{ 1,37,1,49.5367,0.02875 },
{ 1,38,1,49.6093,0.02878 },
{ 1,39,1,49.6791,0.02882 },
{ 1,40,1,49.7465,0.02886 },
{ 1,41,1,49.8116,0.02889 },
{ 1,42,1,49.8745,0.02893 },
{ 1,43,1,49.9354,0.02896 },
{ 1,44,1,49.9942,0.02899 },
{ 1,45,1,50.0512,0.02903 },
{ 1,46,1,50.1064,0.02906 },
{ 1,47,1,50.1598,0.02909 },
{ 1,48,1,50.2115,0.02912 },
{ 1,49,1,50.2617,0.02915 },
{ 1,50,1,50.3105,0.02918 },
{ 1,51,1,50.3578,0.02921 },
{ 1,52,1,50.4039,0.02924 },
{ 1,53,1,50.4488,0.02927 },
{ 1,54,1,50.4926,0.02929 },
{ 1,55,1,50.5354,0.02932 },
{ 1,56,1,50.5772,0.02935 },
{ 1,57,1,50.6183,0.02938 },
{ 1,58,1,50.6587,0.0294 },
{ 1,59,1,50.6984,0.02943 },
{ 1,60,1,50.7375,0.02946 },
{ 2,0,1,33.8787,0.03496 },
{ 2,1,1,36.5463,0.0321 },
{ 2,2,1,38.2521,0.03168 },
{ 2,3,1,39.5328,0.0314 },
{ 2,4,1,40.5817,0.03119 },
{ 2,5,1,41.459,0.03102 },
{ 2,6,1,42.1995,0.03087 },
{ 2,7,1,42.829,0.03075 },
{ 2,8,1,43.3671,0.03063 },
{ 2,9,1,43.83,0.03053 },
{ 2,10,1,44.2319,0.03044 },
{ 2,11,1,44.5844,0.03035 },
{ 2,12,1,44.8965,0.03027 },
{ 2,13,1,45.1752,0.03019 },
{ 2,14,1,45.4265,0.03012 },
{ 2,15,1,45.6551,0.03006 },
{ 2,16,1,45.865,0.02999 },
{ 2,17,1,46.0598,0.02993 },
{ 2,18,1,46.2424,0.02987 },
{ 2,19,1,46.4152,0.02982 },
{ 2,20,1,46.5801,0.02977 },
{ 2,21,1,46.7384,0.02972 },
{ 2,22,1,46.8913,0.02967 },
{ 2,23,1,47.0391,0.02962 },
{ 2,24,1,47.1822,0.02957 },
{ 2,25,1,47.3204,0.02953 },
{ 2,26,1,47.4536,0.02949 },
{ 2,27,1,47.5817,0.02945 },
{ 2,28,1,47.7045,0.02941 },
{ 2,29,1,47.8219,0.02937 },
{ 2,30,1,47.934,0.02933 },
{ 2,31,1,48.041,0.02929 },
{ 2,32,1,48.1432,0.02926 },
{ 2,33,1,48.2408,0.02922 },
{ 2,34,1,48.3343,0.02919 },
{ 2,35,1,48.4239,0.02915 },
{ 2,36,1,48.5099,0.02912 },
{ 2,37,1,48.5926,0.02909 },
{ 2,38,1,48.6722,0.02906 },
{ 2,39,1,48.7489,0.02903 },
{ 2,40,1,48.8228,0.029 },
{ 2,41,1,48.8941,0.02897 },
{ 2,42,1,48.9629,0.02894 },
{ 2,43,1,49.0294,0.02891 },
{ 2,44,1,49.0937,0.02888 },
{ 2,45,1,49.156,0.02886 },
{ 2,46,1,49.2164,0.02883 },
{ 2,47,1,49.2751,0.0288 },
{ 2,48,1,49.3321,0.02878 },
{ 2,49,1,49.3877,0.02875 },
{ 2,50,1,49.4419,0.02873 },
{ 2,51,1,49.4947,0.0287 },
{ 2,52,1,49.5464,0.02868 },
{ 2,53,1,49.5969,0.02865 },
{ 2,54,1,49.6464,0.02863 },
{ 2,55,1,49.6947,0.02861 },
{ 2,56,1,49.7421,0.02859 },
{ 2,57,1,49.7885,0.02856 },
{ 2,58,1,49.8341,0.02854 },
{ 2,59,1,49.8789,0.02852 },
{ 2,60,1,49.9229,0.0285 }
                                               };
        private static double[,] WHO2006SSF = { 
                                              { 1,3,-0.3033,7.6899,0.1702 },
{ 1,4,-0.3278,7.4968,0.17097 },
{ 1,5,-0.3503,7.3207,0.17167 },
{ 1,6,-0.3712,7.1588,0.17232 },
{ 1,7,-0.3909,7.0104,0.17293 },
{ 1,8,-0.4097,6.8753,0.17352 },
{ 1,9,-0.4276,6.753,0.17408 },
{ 1,10,-0.4449,6.6428,0.17462 },
{ 1,11,-0.4616,6.5442,0.17514 },
{ 1,12,-0.4777,6.4562,0.17564 },
{ 1,13,-0.4934,6.378,0.17613 },
{ 1,14,-0.5087,6.3085,0.1766 },
{ 1,15,-0.5236,6.2468,0.17707 },
{ 1,16,-0.5381,6.1921,0.17752 },
{ 1,17,-0.5524,6.1435,0.17797 },
{ 1,18,-0.5663,6.1003,0.1784 },
{ 1,19,-0.58,6.0617,0.17883 },
{ 1,20,-0.5934,6.0274,0.17925 },
{ 1,21,-0.6066,5.9972,0.17966 },
{ 1,22,-0.6196,5.9706,0.18006 },
{ 1,23,-0.6324,5.947,0.18046 },
{ 1,24,-0.6449,5.9258,0.18085 },
{ 1,25,-0.6573,5.9067,0.18124 },
{ 1,26,-0.6695,5.8891,0.18162 },
{ 1,27,-0.6816,5.8729,0.18199 },
{ 1,28,-0.6935,5.8576,0.18237 },
{ 1,29,-0.7053,5.8431,0.18273 },
{ 1,30,-0.7169,5.829,0.18309 },
{ 1,31,-0.7283,5.815,0.18345 },
{ 1,32,-0.7397,5.8011,0.18381 },
{ 1,33,-0.7509,5.787,0.18416 },
{ 1,34,-0.762,5.7727,0.1845 },
{ 1,35,-0.773,5.758,0.18485 },
{ 1,36,-0.7839,5.743,0.18519 },
{ 1,37,-0.7947,5.7278,0.18552 },
{ 1,38,-0.8054,5.7125,0.18585 },
{ 1,39,-0.8159,5.6971,0.18618 },
{ 1,40,-0.8264,5.6815,0.18651 },
{ 1,41,-0.8368,5.6658,0.18684 },
{ 1,42,-0.8471,5.65,0.18716 },
{ 1,43,-0.8574,5.6339,0.18748 },
{ 1,44,-0.8675,5.6174,0.18779 },
{ 1,45,-0.8775,5.6006,0.18811 },
{ 1,46,-0.8875,5.5834,0.18842 },
{ 1,47,-0.8974,5.5659,0.18873 },
{ 1,48,-0.9073,5.5482,0.18903 },
{ 1,49,-0.917,5.5303,0.18934 },
{ 1,50,-0.9267,5.5125,0.18964 },
{ 1,51,-0.9363,5.4948,0.18994 },
{ 1,52,-0.9459,5.4774,0.19024 },
{ 1,53,-0.9554,5.4606,0.19053 },
{ 1,54,-0.9648,5.4443,0.19083 },
{ 1,55,-0.9742,5.4288,0.19112 },
{ 1,56,-0.9835,5.414,0.19141 },
{ 1,57,-0.9928,5.4,0.1917 },
{ 1,58,-1.002,5.3868,0.19199 },
{ 1,59,-1.0111,5.3744,0.19227 },
{ 1,60,-1.0202,5.3628,0.19255 },
{ 2,3,-0.2026,7.7846,0.18428 },
{ 2,4,-0.2577,7.5405,0.1843 },
{ 2,5,-0.302,7.3384,0.18428 },
{ 2,6,-0.3394,7.1637,0.18425 },
{ 2,7,-0.3718,7.0118,0.18421 },
{ 2,8,-0.4005,6.8807,0.18412 },
{ 2,9,-0.4263,6.7679,0.18399 },
{ 2,10,-0.4498,6.6707,0.18387 },
{ 2,11,-0.4713,6.5867,0.18381 },
{ 2,12,-0.4912,6.5138,0.18383 },
{ 2,13,-0.5098,6.4505,0.18394 },
{ 2,14,-0.5272,6.3955,0.18415 },
{ 2,15,-0.5435,6.3474,0.18446 },
{ 2,16,-0.559,6.3055,0.18487 },
{ 2,17,-0.5736,6.2689,0.18538 },
{ 2,18,-0.5876,6.2373,0.18598 },
{ 2,19,-0.6009,6.2101,0.18666 },
{ 2,20,-0.6136,6.1868,0.18741 },
{ 2,21,-0.6257,6.1669,0.18823 },
{ 2,22,-0.6374,6.15,0.18911 },
{ 2,23,-0.6487,6.1355,0.19005 },
{ 2,24,-0.6595,6.1232,0.19104 },
{ 2,25,-0.67,6.1129,0.19207 },
{ 2,26,-0.6801,6.1041,0.19315 },
{ 2,27,-0.6899,6.0968,0.19426 },
{ 2,28,-0.6994,6.0905,0.1954 },
{ 2,29,-0.7086,6.0851,0.19657 },
{ 2,30,-0.7175,6.0806,0.19776 },
{ 2,31,-0.7262,6.0766,0.19898 },
{ 2,32,-0.7347,6.0733,0.20021 },
{ 2,33,-0.7429,6.0705,0.20145 },
{ 2,34,-0.7509,6.0683,0.2027 },
{ 2,35,-0.7587,6.0665,0.20395 },
{ 2,36,-0.7664,6.0652,0.20521 },
{ 2,37,-0.7738,6.0643,0.20647 },
{ 2,38,-0.7811,6.0637,0.20773 },
{ 2,39,-0.7882,6.0633,0.20899 },
{ 2,40,-0.7952,6.0632,0.21024 },
{ 2,41,-0.802,6.0632,0.21149 },
{ 2,42,-0.8087,6.0634,0.21273 },
{ 2,43,-0.8152,6.0637,0.21396 },
{ 2,44,-0.8217,6.0641,0.21518 },
{ 2,45,-0.828,6.0647,0.21638 },
{ 2,46,-0.8341,6.0653,0.21758 },
{ 2,47,-0.8402,6.0661,0.21876 },
{ 2,48,-0.8462,6.0669,0.21993 },
{ 2,49,-0.852,6.0679,0.22109 },
{ 2,50,-0.8578,6.069,0.22223 },
{ 2,51,-0.8634,6.0703,0.22335 },
{ 2,52,-0.869,6.0717,0.22447 },
{ 2,53,-0.8745,6.0732,0.22556 },
{ 2,54,-0.8799,6.0748,0.22664 },
{ 2,55,-0.8852,6.0765,0.22771 },
{ 2,56,-0.8904,6.0784,0.22876 },
{ 2,57,-0.8955,6.0803,0.22979 },
{ 2,58,-0.9006,6.0823,0.23081 },
{ 2,59,-0.9056,6.0844,0.23182 },
{ 2,60,-0.9105,6.0865,0.2328 }
                                              };
        private static double[,] WHO2006TSF = { 
                                              { 1,3,0.0027,9.7639,0.16618 },
{ 1,4,-0.0165,9.584,0.17264 },
{ 1,5,-0.0326,9.3885,0.17824 },
{ 1,6,-0.0466,9.1729,0.18304 },
{ 1,7,-0.059,8.9535,0.18685 },
{ 1,8,-0.0703,8.7435,0.18968 },
{ 1,9,-0.0806,8.5518,0.19166 },
{ 1,10,-0.0901,8.3812,0.193 },
{ 1,11,-0.099,8.2323,0.19389 },
{ 1,12,-0.1073,8.1041,0.19453 },
{ 1,13,-0.1152,7.9958,0.19506 },
{ 1,14,-0.1227,7.9064,0.19558 },
{ 1,15,-0.1297,7.8345,0.19612 },
{ 1,16,-0.1365,7.7781,0.19668 },
{ 1,17,-0.143,7.7351,0.19728 },
{ 1,18,-0.1492,7.7036,0.19793 },
{ 1,19,-0.1552,7.6821,0.19862 },
{ 1,20,-0.1609,7.6697,0.19937 },
{ 1,21,-0.1665,7.6652,0.20018 },
{ 1,22,-0.1719,7.6675,0.20105 },
{ 1,23,-0.1771,7.675,0.20196 },
{ 1,24,-0.1821,7.6863,0.20293 },
{ 1,25,-0.187,7.7003,0.20394 },
{ 1,26,-0.1918,7.7156,0.20497 },
{ 1,27,-0.1965,7.7312,0.20603 },
{ 1,28,-0.201,7.7463,0.2071 },
{ 1,29,-0.2054,7.7602,0.20818 },
{ 1,30,-0.2097,7.7726,0.20928 },
{ 1,31,-0.2139,7.7832,0.21039 },
{ 1,32,-0.218,7.792,0.21153 },
{ 1,33,-0.2221,7.7989,0.21269 },
{ 1,34,-0.226,7.804,0.21389 },
{ 1,35,-0.2299,7.8074,0.21513 },
{ 1,36,-0.2336,7.8094,0.21641 },
{ 1,37,-0.2374,7.8101,0.21773 },
{ 1,38,-0.241,7.8096,0.21909 },
{ 1,39,-0.2446,7.808,0.22049 },
{ 1,40,-0.2481,7.8051,0.22194 },
{ 1,41,-0.2515,7.8009,0.22343 },
{ 1,42,-0.2549,7.7954,0.22496 },
{ 1,43,-0.2583,7.7885,0.22653 },
{ 1,44,-0.2616,7.7804,0.22813 },
{ 1,45,-0.2648,7.771,0.22975 },
{ 1,46,-0.268,7.7605,0.2314 },
{ 1,47,-0.2711,7.7489,0.23306 },
{ 1,48,-0.2742,7.7364,0.23473 },
{ 1,49,-0.2772,7.7233,0.23642 },
{ 1,50,-0.2802,7.7096,0.23811 },
{ 1,51,-0.2832,7.6955,0.23981 },
{ 1,52,-0.2861,7.6812,0.24151 },
{ 1,53,-0.289,7.6669,0.24322 },
{ 1,54,-0.2918,7.6525,0.24494 },
{ 1,55,-0.2946,7.6383,0.24666 },
{ 1,56,-0.2974,7.6242,0.24839 },
{ 1,57,-0.3001,7.6104,0.25013 },
{ 1,58,-0.3028,7.5968,0.25186 },
{ 1,59,-0.3055,7.5835,0.2536 },
{ 1,60,-0.3081,7.5706,0.25533 },
{ 2,3,0.1875,9.7516,0.17535 },
{ 2,4,0.1256,9.5866,0.18337 },
{ 2,5,0.0761,9.3716,0.19007 },
{ 2,6,0.0349,9.1194,0.1954 },
{ 2,7,-0.0003,8.8621,0.19934 },
{ 2,8,-0.0307,8.6228,0.20192 },
{ 2,9,-0.0572,8.4164,0.20339 },
{ 2,10,-0.0799,8.2468,0.20413 },
{ 2,11,-0.0995,8.1114,0.20442 },
{ 2,12,-0.1161,8.0042,0.20445 },
{ 2,13,-0.1303,7.9197,0.20432 },
{ 2,14,-0.1424,7.8538,0.20409 },
{ 2,15,-0.1527,7.8041,0.20384 },
{ 2,16,-0.1615,7.7681,0.20363 },
{ 2,17,-0.169,7.7443,0.2035 },
{ 2,18,-0.1755,7.7315,0.2035 },
{ 2,19,-0.1811,7.7287,0.20364 },
{ 2,20,-0.1859,7.7347,0.20393 },
{ 2,21,-0.1901,7.7484,0.20437 },
{ 2,22,-0.1939,7.7692,0.20496 },
{ 2,23,-0.1973,7.7958,0.20568 },
{ 2,24,-0.2004,7.8273,0.20652 },
{ 2,25,-0.2032,7.8628,0.20748 },
{ 2,26,-0.2058,7.9006,0.20855 },
{ 2,27,-0.2081,7.9396,0.20971 },
{ 2,28,-0.2103,7.9786,0.21096 },
{ 2,29,-0.2122,8.0167,0.21228 },
{ 2,30,-0.214,8.0535,0.21366 },
{ 2,31,-0.2155,8.0887,0.21509 },
{ 2,32,-0.217,8.1224,0.21657 },
{ 2,33,-0.2183,8.1545,0.21809 },
{ 2,34,-0.2195,8.1855,0.21964 },
{ 2,35,-0.2207,8.2156,0.22122 },
{ 2,36,-0.2217,8.245,0.22282 },
{ 2,37,-0.2227,8.2738,0.22444 },
{ 2,38,-0.2237,8.3019,0.22608 },
{ 2,39,-0.2246,8.3294,0.22772 },
{ 2,40,-0.2254,8.356,0.22937 },
{ 2,41,-0.2262,8.3818,0.23101 },
{ 2,42,-0.227,8.4068,0.23264 },
{ 2,43,-0.2278,8.4311,0.23427 },
{ 2,44,-0.2285,8.455,0.23587 },
{ 2,45,-0.2292,8.4786,0.23747 },
{ 2,46,-0.2298,8.5019,0.23904 },
{ 2,47,-0.2304,8.525,0.2406 },
{ 2,48,-0.231,8.5481,0.24215 },
{ 2,49,-0.2316,8.5711,0.24367 },
{ 2,50,-0.2321,8.5942,0.24517 },
{ 2,51,-0.2326,8.6174,0.24665 },
{ 2,52,-0.2331,8.6406,0.24811 },
{ 2,53,-0.2336,8.6641,0.24954 },
{ 2,54,-0.2341,8.6876,0.25095 },
{ 2,55,-0.2346,8.7112,0.25233 },
{ 2,56,-0.235,8.7349,0.25369 },
{ 2,57,-0.2355,8.7586,0.25502 },
{ 2,58,-0.2359,8.7824,0.25633 },
{ 2,59,-0.2363,8.8061,0.25761 },
{ 2,60,-0.2368,8.8298,0.25887 }
                                              };

        #endregion WHO 2006 Growth Standards Data

        #region WHO 2007 Reference Data
        private static double[,] WHO2007BMI = {

{ 1,0,-0.3053,13.4069,0.0956 },
{ 1,1,0.2708,14.9441,0.09027 },
{ 1,2,0.1118,16.3195,0.08677 },
{ 1,3,0.0068,16.8987,0.08495 },
{ 1,4,-0.0727,17.1579,0.08378 },
{ 1,5,-0.137,17.2919,0.08296 },
{ 1,6,-0.1913,17.3422,0.08234 },
{ 1,7,-0.2385,17.3288,0.08183 },
{ 1,8,-0.2802,17.2647,0.0814 },
{ 1,9,-0.3176,17.1662,0.08102 },
{ 1,10,-0.3516,17.0488,0.08068 },
{ 1,11,-0.3828,16.9239,0.08037 },
{ 1,12,-0.4115,16.7981,0.08009 },
{ 1,13,-0.4382,16.6743,0.07982 },
{ 1,14,-0.463,16.5548,0.07958 },
{ 1,15,-0.4863,16.4409,0.07935 },
{ 1,16,-0.5082,16.3335,0.07913 },
{ 1,17,-0.5289,16.2329,0.07892 },
{ 1,18,-0.5484,16.1392,0.07873 },
{ 1,19,-0.5669,16.0528,0.07854 },
{ 1,20,-0.5846,15.9743,0.07836 },
{ 1,21,-0.6014,15.9039,0.07818 },
{ 1,22,-0.6174,15.8412,0.07802 },
{ 1,23,-0.6328,15.7852,0.07786 },
{ 1,24,-0.6473,15.7356,0.07771 },
{ 1,24,-0.6187,16.0189,0.07785 },
{ 1,25,-0.584,15.98,0.07792 },
{ 1,26,-0.5497,15.9414,0.078 },
{ 1,27,-0.5166,15.9036,0.07808 },
{ 1,28,-0.485,15.8667,0.07818 },
{ 1,29,-0.4552,15.8306,0.07829 },
{ 1,30,-0.4274,15.7953,0.07841 },
{ 1,31,-0.4016,15.7606,0.07854 },
{ 1,32,-0.3782,15.7267,0.07867 },
{ 1,33,-0.3572,15.6934,0.07882 },
{ 1,34,-0.3388,15.661,0.07897 },
{ 1,35,-0.3231,15.6294,0.07914 },
{ 1,36,-0.3101,15.5988,0.07931 },
{ 1,37,-0.3,15.5693,0.0795 },
{ 1,38,-0.2927,15.541,0.07969 },
{ 1,39,-0.2884,15.514,0.0799 },
{ 1,40,-0.2869,15.4885,0.08012 },
{ 1,41,-0.2881,15.4645,0.08036 },
{ 1,42,-0.2919,15.442,0.08061 },
{ 1,43,-0.2981,15.421,0.08087 },
{ 1,44,-0.3067,15.4013,0.08115 },
{ 1,45,-0.3174,15.3827,0.08144 },
{ 1,46,-0.3303,15.3652,0.08174 },
{ 1,47,-0.3452,15.3485,0.08205 },
{ 1,48,-0.3622,15.3326,0.08238 },
{ 1,49,-0.3811,15.3174,0.08272 },
{ 1,50,-0.4019,15.3029,0.08307 },
{ 1,51,-0.4245,15.2891,0.08343 },
{ 1,52,-0.4488,15.2759,0.0838 },
{ 1,53,-0.4747,15.2633,0.08418 },
{ 1,54,-0.5019,15.2514,0.08457 },
{ 1,55,-0.5303,15.24,0.08496 },
{ 1,56,-0.5599,15.2291,0.08536 },
{ 1,57,-0.5905,15.2188,0.08577 },
{ 1,58,-0.6223,15.2091,0.08617 },
{ 1,59,-0.6552,15.2,0.08659 },
{ 1,60,-0.6892,15.1916,0.087 },                                              
{ 1,61,-0.7387,15.2641,0.0839 },
{ 1,62,-0.7621,15.2616,0.08414 },
{ 1,63,-0.7856,15.2604,0.08439 },
{ 1,64,-0.8089,15.2605,0.08464 },
{ 1,65,-0.8322,15.2619,0.0849 },
{ 1,66,-0.8554,15.2645,0.08516 },
{ 1,67,-0.8785,15.2684,0.08543 },
{ 1,68,-0.9015,15.2737,0.0857 },
{ 1,69,-0.9243,15.2801,0.08597 },
{ 1,70,-0.9471,15.2877,0.08625 },
{ 1,71,-0.9697,15.2965,0.08653 },
{ 1,72,-0.9921,15.3062,0.08682 },
{ 1,73,-1.0144,15.3169,0.08711 },
{ 1,74,-1.0365,15.3285,0.08741 },
{ 1,75,-1.0584,15.3408,0.08771 },
{ 1,76,-1.0801,15.354,0.08802 },
{ 1,77,-1.1017,15.3679,0.08833 },
{ 1,78,-1.123,15.3825,0.08865 },
{ 1,79,-1.1441,15.3978,0.08898 },
{ 1,80,-1.1649,15.4137,0.08931 },
{ 1,81,-1.1856,15.4302,0.08964 },
{ 1,82,-1.206,15.4473,0.08998 },
{ 1,83,-1.2261,15.465,0.09033 },
{ 1,84,-1.246,15.4832,0.09068 },
{ 1,85,-1.2656,15.5019,0.09103 },
{ 1,86,-1.2849,15.521,0.09139 },
{ 1,87,-1.304,15.5407,0.09176 },
{ 1,88,-1.3228,15.5608,0.09213 },
{ 1,89,-1.3414,15.5814,0.09251 },
{ 1,90,-1.3596,15.6023,0.09289 },
{ 1,91,-1.3776,15.6237,0.09327 },
{ 1,92,-1.3953,15.6455,0.09366 },
{ 1,93,-1.4126,15.6677,0.09406 },
{ 1,94,-1.4297,15.6903,0.09445 },
{ 1,95,-1.4464,15.7133,0.09486 },
{ 1,96,-1.4629,15.7368,0.09526 },
{ 1,97,-1.479,15.7606,0.09567 },
{ 1,98,-1.4947,15.7848,0.09609 },
{ 1,99,-1.5101,15.8094,0.09651 },
{ 1,100,-1.5252,15.8344,0.09693 },
{ 1,101,-1.5399,15.8597,0.09735 },
{ 1,102,-1.5542,15.8855,0.09778 },
{ 1,103,-1.5681,15.9116,0.09821 },
{ 1,104,-1.5817,15.9381,0.09864 },
{ 1,105,-1.5948,15.9651,0.09907 },
{ 1,106,-1.6076,15.9925,0.09951 },
{ 1,107,-1.6199,16.0205,0.09994 },
{ 1,108,-1.6318,16.049,0.10038 },
{ 1,109,-1.6433,16.0781,0.10082 },
{ 1,110,-1.6544,16.1078,0.10126 },
{ 1,111,-1.6651,16.1381,0.1017 },
{ 1,112,-1.6753,16.1692,0.10214 },
{ 1,113,-1.6851,16.2009,0.10259 },
{ 1,114,-1.6944,16.2333,0.10303 },
{ 1,115,-1.7032,16.2665,0.10347 },
{ 1,116,-1.7116,16.3004,0.10391 },
{ 1,117,-1.7196,16.3351,0.10435 },
{ 1,118,-1.7271,16.3704,0.10478 },
{ 1,119,-1.7341,16.4065,0.10522 },
{ 1,120,-1.7407,16.4433,0.10566 },
{ 1,121,-1.7468,16.4807,0.10609 },
{ 1,122,-1.7525,16.5189,0.10652 },
{ 1,123,-1.7578,16.5578,0.10695 },
{ 1,124,-1.7626,16.5974,0.10738 },
{ 1,125,-1.767,16.6376,0.1078 },
{ 1,126,-1.771,16.6786,0.10823 },
{ 1,127,-1.7745,16.7203,0.10865 },
{ 1,128,-1.7777,16.7628,0.10906 },
{ 1,129,-1.7804,16.8059,0.10948 },
{ 1,130,-1.7828,16.8497,0.10989 },
{ 1,131,-1.7847,16.8941,0.1103 },
{ 1,132,-1.7862,16.9392,0.1107 },
{ 1,133,-1.7873,16.985,0.1111 },
{ 1,134,-1.7881,17.0314,0.1115 },
{ 1,135,-1.7884,17.0784,0.11189 },
{ 1,136,-1.7884,17.1262,0.11228 },
{ 1,137,-1.788,17.1746,0.11266 },
{ 1,138,-1.7873,17.2236,0.11304 },
{ 1,139,-1.7861,17.2734,0.11342 },
{ 1,140,-1.7846,17.324,0.11379 },
{ 1,141,-1.7828,17.3752,0.11415 },
{ 1,142,-1.7806,17.4272,0.11451 },
{ 1,143,-1.778,17.4799,0.11487 },
{ 1,144,-1.7751,17.5334,0.11522 },
{ 1,145,-1.7719,17.5877,0.11556 },
{ 1,146,-1.7684,17.6427,0.1159 },
{ 1,147,-1.7645,17.6985,0.11623 },
{ 1,148,-1.7604,17.7551,0.11656 },
{ 1,149,-1.7559,17.8124,0.11688 },
{ 1,150,-1.7511,17.8704,0.1172 },
{ 1,151,-1.7461,17.9292,0.11751 },
{ 1,152,-1.7408,17.9887,0.11781 },
{ 1,153,-1.7352,18.0488,0.11811 },
{ 1,154,-1.7293,18.1096,0.11841 },
{ 1,155,-1.7232,18.171,0.11869 },
{ 1,156,-1.7168,18.233,0.11898 },
{ 1,157,-1.7102,18.2955,0.11925 },
{ 1,158,-1.7033,18.3586,0.11952 },
{ 1,159,-1.6962,18.4221,0.11979 },
{ 1,160,-1.6888,18.486,0.12005 },
{ 1,161,-1.6811,18.5502,0.1203 },
{ 1,162,-1.6732,18.6148,0.12055 },
{ 1,163,-1.6651,18.6795,0.12079 },
{ 1,164,-1.6568,18.7445,0.12102 },
{ 1,165,-1.6482,18.8095,0.12125 },
{ 1,166,-1.6394,18.8746,0.12148 },
{ 1,167,-1.6304,18.9398,0.1217 },
{ 1,168,-1.6211,19.005,0.12191 },
{ 1,169,-1.6116,19.0701,0.12212 },
{ 1,170,-1.602,19.1351,0.12233 },
{ 1,171,-1.5921,19.2,0.12253 },
{ 1,172,-1.5821,19.2648,0.12272 },
{ 1,173,-1.5719,19.3294,0.12291 },
{ 1,174,-1.5615,19.3937,0.1231 },
{ 1,175,-1.551,19.4578,0.12328 },
{ 1,176,-1.5403,19.5217,0.12346 },
{ 1,177,-1.5294,19.5853,0.12363 },
{ 1,178,-1.5185,19.6486,0.1238 },
{ 1,179,-1.5074,19.7117,0.12396 },
{ 1,180,-1.4961,19.7744,0.12412 },
{ 1,181,-1.4848,19.8367,0.12428 },
{ 1,182,-1.4733,19.8987,0.12443 },
{ 1,183,-1.4617,19.9603,0.12458 },
{ 1,184,-1.45,20.0215,0.12473 },
{ 1,185,-1.4382,20.0823,0.12487 },
{ 1,186,-1.4263,20.1427,0.12501 },
{ 1,187,-1.4143,20.2026,0.12514 },
{ 1,188,-1.4022,20.2621,0.12528 },
{ 1,189,-1.39,20.3211,0.12541 },
{ 1,190,-1.3777,20.3796,0.12554 },
{ 1,191,-1.3653,20.4376,0.12567 },
{ 1,192,-1.3529,20.4951,0.12579 },
{ 1,193,-1.3403,20.5521,0.12591 },
{ 1,194,-1.3277,20.6085,0.12603 },
{ 1,195,-1.3149,20.6644,0.12615 },
{ 1,196,-1.3021,20.7197,0.12627 },
{ 1,197,-1.2892,20.7745,0.12638 },
{ 1,198,-1.2762,20.8287,0.1265 },
{ 1,199,-1.2631,20.8824,0.12661 },
{ 1,200,-1.2499,20.9355,0.12672 },
{ 1,201,-1.2366,20.9881,0.12683 },
{ 1,202,-1.2233,21.04,0.12694 },
{ 1,203,-1.2098,21.0914,0.12704 },
{ 1,204,-1.1962,21.1423,0.12715 },
{ 1,205,-1.1826,21.1925,0.12726 },
{ 1,206,-1.1688,21.2423,0.12736 },
{ 1,207,-1.155,21.2914,0.12746 },
{ 1,208,-1.141,21.34,0.12756 },
{ 1,209,-1.127,21.388,0.12767 },
{ 1,210,-1.1129,21.4354,0.12777 },
{ 1,211,-1.0986,21.4822,0.12787 },
{ 1,212,-1.0843,21.5285,0.12797 },
{ 1,213,-1.0699,21.5742,0.12807 },
{ 1,214,-1.0553,21.6193,0.12816 },
{ 1,215,-1.0407,21.6638,0.12826 },
{ 1,216,-1.026,21.7077,0.12836 },
{ 1,217,-1.0112,21.751,0.12845 },
{ 1,218,-0.9962,21.7937,0.12855 },
{ 1,219,-0.9812,21.8358,0.12864 },
{ 1,220,-0.9661,21.8773,0.12874 },
{ 1,221,-0.9509,21.9182,0.12883 },
{ 1,222,-0.9356,21.9585,0.12893 },
{ 1,223,-0.9202,21.9982,0.12902 },
{ 1,224,-0.9048,22.0374,0.12911 },
{ 1,225,-0.8892,22.076,0.1292 },
{ 1,226,-0.8735,22.114,0.1293 },
{ 1,227,-0.8578,22.1514,0.12939 },
{ 1,228,-0.8419,22.1883,0.12948 },
{ 2,0,-0.0631,13.3363,0.09272 },
{ 2,1,0.3448,14.5679,0.09556 },
{ 2,2,0.1749,15.7679,0.09371 },
{ 2,3,0.0643,16.3574,0.09254 },
{ 2,4,-0.0191,16.6703,0.09166 },
{ 2,5,-0.0864,16.8386,0.09096 },
{ 2,6,-0.1429,16.9083,0.09036 },
{ 2,7,-0.1916,16.902,0.08984 },
{ 2,8,-0.2344,16.8404,0.08939 },
{ 2,9,-0.2725,16.7406,0.08898 },
{ 2,10,-0.3068,16.6184,0.08861 },
{ 2,11,-0.3381,16.4875,0.08828 },
{ 2,12,-0.3667,16.3568,0.08797 },
{ 2,13,-0.3932,16.2311,0.08768 },
{ 2,14,-0.4177,16.1128,0.08741 },
{ 2,15,-0.4407,16.0028,0.08716 },
{ 2,16,-0.4623,15.9017,0.08693 },
{ 2,17,-0.4825,15.8096,0.08671 },
{ 2,18,-0.5017,15.7263,0.0865 },
{ 2,19,-0.5199,15.6517,0.0863 },
{ 2,20,-0.5372,15.5855,0.08612 },
{ 2,21,-0.5537,15.5278,0.08594 },
{ 2,22,-0.5695,15.4787,0.08577 },
{ 2,23,-0.5846,15.438,0.0856 },
{ 2,24,-0.5989,15.4052,0.08545 },
{ 2,24,-0.5684,15.6881,0.08454 },
{ 2,25,-0.5684,15.659,0.08452 },
{ 2,26,-0.5684,15.6308,0.08449 },
{ 2,27,-0.5684,15.6037,0.08446 },
{ 2,28,-0.5684,15.5777,0.08444 },
{ 2,29,-0.5684,15.5523,0.08443 },
{ 2,30,-0.5684,15.5276,0.08444 },
{ 2,31,-0.5684,15.5034,0.08448 },
{ 2,32,-0.5684,15.4798,0.08455 },
{ 2,33,-0.5684,15.4572,0.08467 },
{ 2,34,-0.5684,15.4356,0.08484 },
{ 2,35,-0.5684,15.4155,0.08506 },
{ 2,36,-0.5684,15.3968,0.08535 },
{ 2,37,-0.5684,15.3796,0.08569 },
{ 2,38,-0.5684,15.3638,0.08609 },
{ 2,39,-0.5684,15.3493,0.08654 },
{ 2,40,-0.5684,15.3358,0.08704 },
{ 2,41,-0.5684,15.3233,0.08757 },
{ 2,42,-0.5684,15.3116,0.08813 },
{ 2,43,-0.5684,15.3007,0.08872 },
{ 2,44,-0.5684,15.2905,0.08931 },
{ 2,45,-0.5684,15.2814,0.08991 },
{ 2,46,-0.5684,15.2732,0.09051 },
{ 2,47,-0.5684,15.2661,0.0911 },
{ 2,48,-0.5684,15.2602,0.09168 },
{ 2,49,-0.5684,15.2556,0.09227 },
{ 2,50,-0.5684,15.2523,0.09286 },
{ 2,51,-0.5684,15.2503,0.09345 },
{ 2,52,-0.5684,15.2496,0.09403 },
{ 2,53,-0.5684,15.2502,0.0946 },
{ 2,54,-0.5684,15.2519,0.09515 },
{ 2,55,-0.5684,15.2544,0.09568 },
{ 2,56,-0.5684,15.2575,0.09618 },
{ 2,57,-0.5684,15.2612,0.09665 },
{ 2,58,-0.5684,15.2653,0.09709 },
{ 2,59,-0.5684,15.2698,0.0975 },
{ 2,60,-0.5684,15.2747,0.09789 },
{ 2,61,-0.8886,15.2441,0.09692 },
{ 2,62,-0.9068,15.2434,0.09738 },
{ 2,63,-0.9248,15.2433,0.09783 },
{ 2,64,-0.9427,15.2438,0.09829 },
{ 2,65,-0.9605,15.2448,0.09875 },
{ 2,66,-0.978,15.2464,0.0992 },
{ 2,67,-0.9954,15.2487,0.09966 },
{ 2,68,-1.0126,15.2516,0.10012 },
{ 2,69,-1.0296,15.2551,0.10058 },
{ 2,70,-1.0464,15.2592,0.10104 },
{ 2,71,-1.063,15.2641,0.10149 },
{ 2,72,-1.0794,15.2697,0.10195 },
{ 2,73,-1.0956,15.276,0.10241 },
{ 2,74,-1.1115,15.2831,0.10287 },
{ 2,75,-1.1272,15.2911,0.10333 },
{ 2,76,-1.1427,15.2998,0.10379 },
{ 2,77,-1.1579,15.3095,0.10425 },
{ 2,78,-1.1728,15.32,0.10471 },
{ 2,79,-1.1875,15.3314,0.10517 },
{ 2,80,-1.2019,15.3439,0.10562 },
{ 2,81,-1.216,15.3572,0.10608 },
{ 2,82,-1.2298,15.3717,0.10654 },
{ 2,83,-1.2433,15.3871,0.107 },
{ 2,84,-1.2565,15.4036,0.10746 },
{ 2,85,-1.2693,15.4211,0.10792 },
{ 2,86,-1.2819,15.4397,0.10837 },
{ 2,87,-1.2941,15.4593,0.10883 },
{ 2,88,-1.306,15.4798,0.10929 },
{ 2,89,-1.3175,15.5014,0.10974 },
{ 2,90,-1.3287,15.524,0.1102 },
{ 2,91,-1.3395,15.5476,0.11065 },
{ 2,92,-1.3499,15.5723,0.1111 },
{ 2,93,-1.36,15.5979,0.11156 },
{ 2,94,-1.3697,15.6246,0.11201 },
{ 2,95,-1.379,15.6523,0.11246 },
{ 2,96,-1.388,15.681,0.11291 },
{ 2,97,-1.3966,15.7107,0.11335 },
{ 2,98,-1.4047,15.7415,0.1138 },
{ 2,99,-1.4125,15.7732,0.11424 },
{ 2,100,-1.4199,15.8058,0.11469 },
{ 2,101,-1.427,15.8394,0.11513 },
{ 2,102,-1.4336,15.8738,0.11557 },
{ 2,103,-1.4398,15.909,0.11601 },
{ 2,104,-1.4456,15.9451,0.11644 },
{ 2,105,-1.4511,15.9818,0.11688 },
{ 2,106,-1.4561,16.0194,0.11731 },
{ 2,107,-1.4607,16.0575,0.11774 },
{ 2,108,-1.465,16.0964,0.11816 },
{ 2,109,-1.4688,16.1358,0.11859 },
{ 2,110,-1.4723,16.1759,0.11901 },
{ 2,111,-1.4753,16.2166,0.11943 },
{ 2,112,-1.478,16.258,0.11985 },
{ 2,113,-1.4803,16.2999,0.12026 },
{ 2,114,-1.4823,16.3425,0.12067 },
{ 2,115,-1.4838,16.3858,0.12108 },
{ 2,116,-1.485,16.4298,0.12148 },
{ 2,117,-1.4859,16.4746,0.12188 },
{ 2,118,-1.4864,16.52,0.12228 },
{ 2,119,-1.4866,16.5663,0.12268 },
{ 2,120,-1.4864,16.6133,0.12307 },
{ 2,121,-1.4859,16.6612,0.12346 },
{ 2,122,-1.4851,16.71,0.12384 },
{ 2,123,-1.4839,16.7595,0.12422 },
{ 2,124,-1.4825,16.81,0.1246 },
{ 2,125,-1.4807,16.8614,0.12497 },
{ 2,126,-1.4787,16.9136,0.12534 },
{ 2,127,-1.4763,16.9667,0.12571 },
{ 2,128,-1.4737,17.0208,0.12607 },
{ 2,129,-1.4708,17.0757,0.12643 },
{ 2,130,-1.4677,17.1316,0.12678 },
{ 2,131,-1.4642,17.1883,0.12713 },
{ 2,132,-1.4606,17.2459,0.12748 },
{ 2,133,-1.4567,17.3044,0.12782 },
{ 2,134,-1.4526,17.3637,0.12816 },
{ 2,135,-1.4482,17.4238,0.12849 },
{ 2,136,-1.4436,17.4847,0.12882 },
{ 2,137,-1.4389,17.5464,0.12914 },
{ 2,138,-1.4339,17.6088,0.12946 },
{ 2,139,-1.4288,17.6719,0.12978 },
{ 2,140,-1.4235,17.7357,0.13009 },
{ 2,141,-1.418,17.8001,0.1304 },
{ 2,142,-1.4123,17.8651,0.1307 },
{ 2,143,-1.4065,17.9306,0.13099 },
{ 2,144,-1.4006,17.9966,0.13129 },
{ 2,145,-1.3945,18.063,0.13158 },
{ 2,146,-1.3883,18.1297,0.13186 },
{ 2,147,-1.3819,18.1967,0.13214 },
{ 2,148,-1.3755,18.2639,0.13241 },
{ 2,149,-1.3689,18.3312,0.13268 },
{ 2,150,-1.3621,18.3986,0.13295 },
{ 2,151,-1.3553,18.466,0.13321 },
{ 2,152,-1.3483,18.5333,0.13347 },
{ 2,153,-1.3413,18.6006,0.13372 },
{ 2,154,-1.3341,18.6677,0.13397 },
{ 2,155,-1.3269,18.7346,0.13421 },
{ 2,156,-1.3195,18.8012,0.13445 },
{ 2,157,-1.3121,18.8675,0.13469 },
{ 2,158,-1.3046,18.9335,0.13492 },
{ 2,159,-1.297,18.9991,0.13514 },
{ 2,160,-1.2894,19.0642,0.13537 },
{ 2,161,-1.2816,19.1289,0.13559 },
{ 2,162,-1.2739,19.1931,0.1358 },
{ 2,163,-1.2661,19.2567,0.13601 },
{ 2,164,-1.2583,19.3197,0.13622 },
{ 2,165,-1.2504,19.382,0.13642 },
{ 2,166,-1.2425,19.4437,0.13662 },
{ 2,167,-1.2345,19.5045,0.13681 },
{ 2,168,-1.2266,19.5647,0.137 },
{ 2,169,-1.2186,19.624,0.13719 },
{ 2,170,-1.2107,19.6824,0.13738 },
{ 2,171,-1.2027,19.74,0.13756 },
{ 2,172,-1.1947,19.7966,0.13774 },
{ 2,173,-1.1867,19.8523,0.13791 },
{ 2,174,-1.1788,19.907,0.13808 },
{ 2,175,-1.1708,19.9607,0.13825 },
{ 2,176,-1.1629,20.0133,0.13841 },
{ 2,177,-1.1549,20.0648,0.13858 },
{ 2,178,-1.147,20.1152,0.13873 },
{ 2,179,-1.139,20.1644,0.13889 },
{ 2,180,-1.1311,20.2125,0.13904 },
{ 2,181,-1.1232,20.2595,0.1392 },
{ 2,182,-1.1153,20.3053,0.13934 },
{ 2,183,-1.1074,20.3499,0.13949 },
{ 2,184,-1.0996,20.3934,0.13963 },
{ 2,185,-1.0917,20.4357,0.13977 },
{ 2,186,-1.0838,20.4769,0.13991 },
{ 2,187,-1.076,20.517,0.14005 },
{ 2,188,-1.0681,20.556,0.14018 },
{ 2,189,-1.0603,20.5938,0.14031 },
{ 2,190,-1.0525,20.6306,0.14044 },
{ 2,191,-1.0447,20.6663,0.14057 },
{ 2,192,-1.0368,20.7008,0.1407 },
{ 2,193,-1.029,20.7344,0.14082 },
{ 2,194,-1.0212,20.7668,0.14094 },
{ 2,195,-1.0134,20.7982,0.14106 },
{ 2,196,-1.0055,20.8286,0.14118 },
{ 2,197,-0.9977,20.858,0.1413 },
{ 2,198,-0.9898,20.8863,0.14142 },
{ 2,199,-0.9819,20.9137,0.14153 },
{ 2,200,-0.974,20.9401,0.14164 },
{ 2,201,-0.9661,20.9656,0.14176 },
{ 2,202,-0.9582,20.9901,0.14187 },
{ 2,203,-0.9503,21.0138,0.14198 },
{ 2,204,-0.9423,21.0367,0.14208 },
{ 2,205,-0.9344,21.0587,0.14219 },
{ 2,206,-0.9264,21.0801,0.1423 },
{ 2,207,-0.9184,21.1007,0.1424 },
{ 2,208,-0.9104,21.1206,0.1425 },
{ 2,209,-0.9024,21.1399,0.14261 },
{ 2,210,-0.8944,21.1586,0.14271 },
{ 2,211,-0.8863,21.1768,0.14281 },
{ 2,212,-0.8783,21.1944,0.14291 },
{ 2,213,-0.8703,21.2116,0.14301 },
{ 2,214,-0.8623,21.2282,0.14311 },
{ 2,215,-0.8542,21.2444,0.1432 },
{ 2,216,-0.8462,21.2603,0.1433 },
{ 2,217,-0.8382,21.2757,0.1434 },
{ 2,218,-0.8301,21.2908,0.14349 },
{ 2,219,-0.8221,21.3055,0.14359 },
{ 2,220,-0.814,21.32,0.14368 },
{ 2,221,-0.806,21.3341,0.14377 },
{ 2,222,-0.798,21.348,0.14386 },
{ 2,223,-0.7899,21.3617,0.14396 },
{ 2,224,-0.7819,21.3752,0.14405 },
{ 2,225,-0.7738,21.3884,0.14414 },
{ 2,226,-0.7658,21.4014,0.14423 },
{ 2,227,-0.7577,21.4143,0.14432 },
{ 2,228,-0.7496,21.4269,0.14441 }
                                              };
        private static double[,] WHO2007HtAge = {
{ 1,0,1,49.8842,0.03795 },
{ 1,1,1,54.7244,0.03557 },
{ 1,2,1,58.4249,0.03424 },
{ 1,3,1,61.4292,0.03328 },
{ 1,4,1,63.886,0.03257 },
{ 1,5,1,65.9026,0.03204 },
{ 1,6,1,67.6236,0.03165 },
{ 1,7,1,69.1645,0.03139 },
{ 1,8,1,70.5994,0.03124 },
{ 1,9,1,71.9687,0.03117 },
{ 1,10,1,73.2812,0.03118 },
{ 1,11,1,74.5388,0.03125 },
{ 1,12,1,75.7488,0.03137 },
{ 1,13,1,76.9186,0.03154 },
{ 1,14,1,78.0497,0.03174 },
{ 1,15,1,79.1458,0.03197 },
{ 1,16,1,80.2113,0.03222 },
{ 1,17,1,81.2487,0.0325 },
{ 1,18,1,82.2587,0.03279 },
{ 1,19,1,83.2418,0.0331 },
{ 1,20,1,84.1996,0.03342 },
{ 1,21,1,85.1348,0.03376 },
{ 1,22,1,86.0477,0.0341 },
{ 1,23,1,86.941,0.03445 },
{ 1,24,1,87.8161,0.03479 },
{ 1,24,1,87.1161,0.03507 },
{ 1,25,1,87.972,0.03542 },
{ 1,26,1,88.8065,0.03576 },
{ 1,27,1,89.6197,0.0361 },
{ 1,28,1,90.412,0.03642 },
{ 1,29,1,91.1828,0.03674 },
{ 1,30,1,91.9327,0.03704 },
{ 1,31,1,92.6631,0.03733 },
{ 1,32,1,93.3753,0.03761 },
{ 1,33,1,94.0711,0.03787 },
{ 1,34,1,94.7532,0.03812 },
{ 1,35,1,95.4236,0.03836 },
{ 1,36,1,96.0835,0.03858 },
{ 1,37,1,96.7337,0.03879 },
{ 1,38,1,97.3749,0.039 },
{ 1,39,1,98.0073,0.03919 },
{ 1,40,1,98.631,0.03937 },
{ 1,41,1,99.2459,0.03954 },
{ 1,42,1,99.8515,0.03971 },
{ 1,43,1,100.4485,0.03986 },
{ 1,44,1,101.0374,0.04002 },
{ 1,45,1,101.6186,0.04016 },
{ 1,46,1,102.1933,0.04031 },
{ 1,47,1,102.7625,0.04045 },
{ 1,48,1,103.3273,0.04059 },
{ 1,49,1,103.8886,0.04073 },
{ 1,50,1,104.4473,0.04086 },
{ 1,51,1,105.0041,0.041 },
{ 1,52,1,105.5596,0.04113 },
{ 1,53,1,106.1138,0.04126 },
{ 1,54,1,106.6668,0.04139 },
{ 1,55,1,107.2188,0.04152 },
{ 1,56,1,107.7697,0.04165 },
{ 1,57,1,108.3198,0.04177 },
{ 1,58,1,108.8689,0.0419 },
{ 1,59,1,109.417,0.04202 },
{ 1,60,1,109.9638,0.04214 },
{ 1,61,1,110.2647,0.04164 },
{ 1,62,1,110.8006,0.04172 },
{ 1,63,1,111.3338,0.0418 },
{ 1,64,1,111.8636,0.04187 },
{ 1,65,1,112.3895,0.04195 },
{ 1,66,1,112.911,0.04203 },
{ 1,67,1,113.428,0.04211 },
{ 1,68,1,113.941,0.04218 },
{ 1,69,1,114.45,0.04226 },
{ 1,70,1,114.9547,0.04234 },
{ 1,71,1,115.4549,0.04241 },
{ 1,72,1,115.9509,0.04249 },
{ 1,73,1,116.4432,0.04257 },
{ 1,74,1,116.9325,0.04264 },
{ 1,75,1,117.4196,0.04272 },
{ 1,76,1,117.9046,0.0428 },
{ 1,77,1,118.388,0.04287 },
{ 1,78,1,118.87,0.04295 },
{ 1,79,1,119.3508,0.04303 },
{ 1,80,1,119.8303,0.04311 },
{ 1,81,1,120.3085,0.04318 },
{ 1,82,1,120.7853,0.04326 },
{ 1,83,1,121.2604,0.04334 },
{ 1,84,1,121.7338,0.04342 },
{ 1,85,1,122.2053,0.0435 },
{ 1,86,1,122.675,0.04358 },
{ 1,87,1,123.1429,0.04366 },
{ 1,88,1,123.6092,0.04374 },
{ 1,89,1,124.0736,0.04382 },
{ 1,90,1,124.5361,0.0439 },
{ 1,91,1,124.9964,0.04398 },
{ 1,92,1,125.4545,0.04406 },
{ 1,93,1,125.9104,0.04414 },
{ 1,94,1,126.364,0.04422 },
{ 1,95,1,126.8156,0.0443 },
{ 1,96,1,127.2651,0.04438 },
{ 1,97,1,127.7129,0.04446 },
{ 1,98,1,128.159,0.04454 },
{ 1,99,1,128.6034,0.04462 },
{ 1,100,1,129.0466,0.0447 },
{ 1,101,1,129.4887,0.04478 },
{ 1,102,1,129.93,0.04487 },
{ 1,103,1,130.3705,0.04495 },
{ 1,104,1,130.8103,0.04503 },
{ 1,105,1,131.2495,0.04511 },
{ 1,106,1,131.6884,0.04519 },
{ 1,107,1,132.1269,0.04527 },
{ 1,108,1,132.5652,0.04535 },
{ 1,109,1,133.0031,0.04543 },
{ 1,110,1,133.4404,0.04551 },
{ 1,111,1,133.877,0.04559 },
{ 1,112,1,134.313,0.04566 },
{ 1,113,1,134.7483,0.04574 },
{ 1,114,1,135.1829,0.04582 },
{ 1,115,1,135.6168,0.04589 },
{ 1,116,1,136.0501,0.04597 },
{ 1,117,1,136.4829,0.04604 },
{ 1,118,1,136.9153,0.04612 },
{ 1,119,1,137.3474,0.04619 },
{ 1,120,1,137.7795,0.04626 },
{ 1,121,1,138.2119,0.04633 },
{ 1,122,1,138.6452,0.0464 },
{ 1,123,1,139.0797,0.04647 },
{ 1,124,1,139.5158,0.04654 },
{ 1,125,1,139.954,0.04661 },
{ 1,126,1,140.3948,0.04667 },
{ 1,127,1,140.8387,0.04674 },
{ 1,128,1,141.2859,0.0468 },
{ 1,129,1,141.7368,0.04686 },
{ 1,130,1,142.1916,0.04692 },
{ 1,131,1,142.6501,0.04698 },
{ 1,132,1,143.1126,0.04703 },
{ 1,133,1,143.5795,0.04709 },
{ 1,134,1,144.0511,0.04714 },
{ 1,135,1,144.5276,0.04719 },
{ 1,136,1,145.0093,0.04723 },
{ 1,137,1,145.4964,0.04728 },
{ 1,138,1,145.9891,0.04732 },
{ 1,139,1,146.4878,0.04736 },
{ 1,140,1,146.9927,0.0474 },
{ 1,141,1,147.5041,0.04744 },
{ 1,142,1,148.0224,0.04747 },
{ 1,143,1,148.5478,0.0475 },
{ 1,144,1,149.0807,0.04753 },
{ 1,145,1,149.6212,0.04755 },
{ 1,146,1,150.1694,0.04758 },
{ 1,147,1,150.7256,0.04759 },
{ 1,148,1,151.2899,0.04761 },
{ 1,149,1,151.8623,0.04762 },
{ 1,150,1,152.4425,0.04763 },
{ 1,151,1,153.0298,0.04763 },
{ 1,152,1,153.6234,0.04764 },
{ 1,153,1,154.2223,0.04763 },
{ 1,154,1,154.8258,0.04763 },
{ 1,155,1,155.4329,0.04762 },
{ 1,156,1,156.0426,0.0476 },
{ 1,157,1,156.6539,0.04758 },
{ 1,158,1,157.266,0.04756 },
{ 1,159,1,157.8775,0.04754 },
{ 1,160,1,158.4871,0.04751 },
{ 1,161,1,159.0937,0.04747 },
{ 1,162,1,159.6962,0.04744 },
{ 1,163,1,160.2939,0.0474 },
{ 1,164,1,160.8861,0.04735 },
{ 1,165,1,161.472,0.0473 },
{ 1,166,1,162.0505,0.04725 },
{ 1,167,1,162.6207,0.0472 },
{ 1,168,1,163.1816,0.04714 },
{ 1,169,1,163.7321,0.04707 },
{ 1,170,1,164.2717,0.04701 },
{ 1,171,1,164.7994,0.04694 },
{ 1,172,1,165.3145,0.04687 },
{ 1,173,1,165.8165,0.04679 },
{ 1,174,1,166.305,0.04671 },
{ 1,175,1,166.7799,0.04663 },
{ 1,176,1,167.2415,0.04655 },
{ 1,177,1,167.6899,0.04646 },
{ 1,178,1,168.1255,0.04637 },
{ 1,179,1,168.5482,0.04628 },
{ 1,180,1,168.958,0.04619 },
{ 1,181,1,169.3549,0.04609 },
{ 1,182,1,169.7389,0.04599 },
{ 1,183,1,170.1099,0.04589 },
{ 1,184,1,170.468,0.04579 },
{ 1,185,1,170.8136,0.04569 },
{ 1,186,1,171.1468,0.04559 },
{ 1,187,1,171.468,0.04548 },
{ 1,188,1,171.7773,0.04538 },
{ 1,189,1,172.0748,0.04527 },
{ 1,190,1,172.3606,0.04516 },
{ 1,191,1,172.6345,0.04506 },
{ 1,192,1,172.8967,0.04495 },
{ 1,193,1,173.147,0.04484 },
{ 1,194,1,173.3856,0.04473 },
{ 1,195,1,173.6126,0.04462 },
{ 1,196,1,173.828,0.04451 },
{ 1,197,1,174.0321,0.0444 },
{ 1,198,1,174.2251,0.04429 },
{ 1,199,1,174.4071,0.04418 },
{ 1,200,1,174.5784,0.04407 },
{ 1,201,1,174.7392,0.04396 },
{ 1,202,1,174.8896,0.04385 },
{ 1,203,1,175.0301,0.04375 },
{ 1,204,1,175.1609,0.04364 },
{ 1,205,1,175.2824,0.04353 },
{ 1,206,1,175.3951,0.04343 },
{ 1,207,1,175.4995,0.04332 },
{ 1,208,1,175.5959,0.04322 },
{ 1,209,1,175.685,0.04311 },
{ 1,210,1,175.7672,0.04301 },
{ 1,211,1,175.8432,0.04291 },
{ 1,212,1,175.9133,0.04281 },
{ 1,213,1,175.9781,0.04271 },
{ 1,214,1,176.038,0.04261 },
{ 1,215,1,176.0935,0.04251 },
{ 1,216,1,176.1449,0.04241 },
{ 1,217,1,176.1925,0.04232 },
{ 1,218,1,176.2368,0.04222 },
{ 1,219,1,176.2779,0.04213 },
{ 1,220,1,176.3162,0.04204 },
{ 1,221,1,176.3518,0.04195 },
{ 1,222,1,176.3851,0.04185 },
{ 1,223,1,176.4162,0.04177 },
{ 1,224,1,176.4453,0.04168 },
{ 1,225,1,176.4724,0.04159 },
{ 1,226,1,176.4976,0.0415 },
{ 1,227,1,176.5211,0.04142 },
{ 1,228,1,176.5432,0.04134 },
{ 2,0,1,49.1477,0.0379 },
{ 2,1,1,53.6872,0.0364 },
{ 2,2,1,57.0673,0.03568 },
{ 2,3,1,59.8029,0.0352 },
{ 2,4,1,62.0899,0.03486 },
{ 2,5,1,64.0301,0.03463 },
{ 2,6,1,65.7311,0.03448 },
{ 2,7,1,67.2873,0.03441 },
{ 2,8,1,68.7498,0.0344 },
{ 2,9,1,70.1435,0.03444 },
{ 2,10,1,71.4818,0.03452 },
{ 2,11,1,72.771,0.03464 },
{ 2,12,1,74.015,0.03479 },
{ 2,13,1,75.2176,0.03496 },
{ 2,14,1,76.3817,0.03514 },
{ 2,15,1,77.5099,0.03534 },
{ 2,16,1,78.6055,0.03555 },
{ 2,17,1,79.671,0.03576 },
{ 2,18,1,80.7079,0.03598 },
{ 2,19,1,81.7182,0.0362 },
{ 2,20,1,82.7036,0.03643 },
{ 2,21,1,83.6654,0.03666 },
{ 2,22,1,84.604,0.03688 },
{ 2,23,1,85.5202,0.03711 },
{ 2,24,1,86.4153,0.03734 },
{ 2,24,1,85.7153,0.03764 },
{ 2,25,1,86.5904,0.03786 },
{ 2,26,1,87.4462,0.03808 },
{ 2,27,1,88.283,0.0383 },
{ 2,28,1,89.1004,0.03851 },
{ 2,29,1,89.8991,0.03872 },
{ 2,30,1,90.6797,0.03893 },
{ 2,31,1,91.443,0.03913 },
{ 2,32,1,92.1906,0.03933 },
{ 2,33,1,92.9239,0.03952 },
{ 2,34,1,93.6444,0.03971 },
{ 2,35,1,94.3533,0.03989 },
{ 2,36,1,95.0515,0.04006 },
{ 2,37,1,95.7399,0.04024 },
{ 2,38,1,96.4187,0.04041 },
{ 2,39,1,97.0885,0.04057 },
{ 2,40,1,97.7493,0.04073 },
{ 2,41,1,98.4015,0.04089 },
{ 2,42,1,99.0448,0.04105 },
{ 2,43,1,99.6795,0.0412 },
{ 2,44,1,100.3058,0.04135 },
{ 2,45,1,100.9238,0.0415 },
{ 2,46,1,101.5337,0.04164 },
{ 2,47,1,102.136,0.04179 },
{ 2,48,1,102.7312,0.04193 },
{ 2,49,1,103.3197,0.04206 },
{ 2,50,1,103.9021,0.0422 },
{ 2,51,1,104.4786,0.04233 },
{ 2,52,1,105.0494,0.04246 },
{ 2,53,1,105.6148,0.04259 },
{ 2,54,1,106.1748,0.04272 },
{ 2,55,1,106.7295,0.04285 },
{ 2,56,1,107.2788,0.04298 },
{ 2,57,1,107.8227,0.0431 },
{ 2,58,1,108.3613,0.04322 },
{ 2,59,1,108.8948,0.04334 },
{ 2,60,1,109.4233,0.04347 },
{ 2,61,1,109.6016,0.04355 },
{ 2,62,1,110.1258,0.04364 },
{ 2,63,1,110.6451,0.04373 },
{ 2,64,1,111.1596,0.04382 },
{ 2,65,1,111.6696,0.0439 },
{ 2,66,1,112.1753,0.04399 },
{ 2,67,1,112.6767,0.04407 },
{ 2,68,1,113.174,0.04415 },
{ 2,69,1,113.6672,0.04423 },
{ 2,70,1,114.1565,0.04431 },
{ 2,71,1,114.6421,0.04439 },
{ 2,72,1,115.1244,0.04447 },
{ 2,73,1,115.6039,0.04454 },
{ 2,74,1,116.0812,0.04461 },
{ 2,75,1,116.5568,0.04469 },
{ 2,76,1,117.0311,0.04475 },
{ 2,77,1,117.5044,0.04482 },
{ 2,78,1,117.9769,0.04489 },
{ 2,79,1,118.4489,0.04495 },
{ 2,80,1,118.9208,0.04502 },
{ 2,81,1,119.3926,0.04508 },
{ 2,82,1,119.8648,0.04514 },
{ 2,83,1,120.3374,0.0452 },
{ 2,84,1,120.8105,0.04525 },
{ 2,85,1,121.2843,0.04531 },
{ 2,86,1,121.7587,0.04536 },
{ 2,87,1,122.2338,0.04542 },
{ 2,88,1,122.7098,0.04547 },
{ 2,89,1,123.1868,0.04551 },
{ 2,90,1,123.6646,0.04556 },
{ 2,91,1,124.1435,0.04561 },
{ 2,92,1,124.6234,0.04565 },
{ 2,93,1,125.1045,0.04569 },
{ 2,94,1,125.5869,0.04573 },
{ 2,95,1,126.0706,0.04577 },
{ 2,96,1,126.5558,0.04581 },
{ 2,97,1,127.0424,0.04585 },
{ 2,98,1,127.5304,0.04588 },
{ 2,99,1,128.0199,0.04591 },
{ 2,100,1,128.5109,0.04594 },
{ 2,101,1,129.0035,0.04597 },
{ 2,102,1,129.4975,0.046 },
{ 2,103,1,129.9932,0.04602 },
{ 2,104,1,130.4904,0.04604 },
{ 2,105,1,130.9891,0.04607 },
{ 2,106,1,131.4895,0.04608 },
{ 2,107,1,131.9912,0.0461 },
{ 2,108,1,132.4944,0.04612 },
{ 2,109,1,132.9989,0.04613 },
{ 2,110,1,133.5046,0.04614 },
{ 2,111,1,134.0118,0.04615 },
{ 2,112,1,134.5202,0.04616 },
{ 2,113,1,135.0299,0.04616 },
{ 2,114,1,135.541,0.04617 },
{ 2,115,1,136.0533,0.04617 },
{ 2,116,1,136.567,0.04616 },
{ 2,117,1,137.0821,0.04616 },
{ 2,118,1,137.5987,0.04616 },
{ 2,119,1,138.1167,0.04615 },
{ 2,120,1,138.6363,0.04614 },
{ 2,121,1,139.1575,0.04612 },
{ 2,122,1,139.6803,0.04611 },
{ 2,123,1,140.2049,0.04609 },
{ 2,124,1,140.7313,0.04607 },
{ 2,125,1,141.2594,0.04605 },
{ 2,126,1,141.7892,0.04603 },
{ 2,127,1,142.3206,0.046 },
{ 2,128,1,142.8534,0.04597 },
{ 2,129,1,143.3874,0.04594 },
{ 2,130,1,143.9222,0.04591 },
{ 2,131,1,144.4575,0.04588 },
{ 2,132,1,144.9929,0.04584 },
{ 2,133,1,145.528,0.0458 },
{ 2,134,1,146.0622,0.04576 },
{ 2,135,1,146.5951,0.04571 },
{ 2,136,1,147.1262,0.04567 },
{ 2,137,1,147.6548,0.04562 },
{ 2,138,1,148.1804,0.04557 },
{ 2,139,1,148.7023,0.04552 },
{ 2,140,1,149.2197,0.04546 },
{ 2,141,1,149.7322,0.04541 },
{ 2,142,1,150.239,0.04535 },
{ 2,143,1,150.7394,0.04529 },
{ 2,144,1,151.2327,0.04523 },
{ 2,145,1,151.7182,0.04516 },
{ 2,146,1,152.1951,0.0451 },
{ 2,147,1,152.6628,0.04503 },
{ 2,148,1,153.1206,0.04497 },
{ 2,149,1,153.5678,0.0449 },
{ 2,150,1,154.0041,0.04483 },
{ 2,151,1,154.429,0.04476 },
{ 2,152,1,154.8423,0.04468 },
{ 2,153,1,155.2437,0.04461 },
{ 2,154,1,155.633,0.04454 },
{ 2,155,1,156.0101,0.04446 },
{ 2,156,1,156.3748,0.04439 },
{ 2,157,1,156.7269,0.04431 },
{ 2,158,1,157.0666,0.04423 },
{ 2,159,1,157.3936,0.04415 },
{ 2,160,1,157.7082,0.04408 },
{ 2,161,1,158.0102,0.044 },
{ 2,162,1,158.2997,0.04392 },
{ 2,163,1,158.5771,0.04384 },
{ 2,164,1,158.8425,0.04376 },
{ 2,165,1,159.0961,0.04369 },
{ 2,166,1,159.3382,0.04361 },
{ 2,167,1,159.5691,0.04353 },
{ 2,168,1,159.789,0.04345 },
{ 2,169,1,159.9983,0.04337 },
{ 2,170,1,160.1971,0.0433 },
{ 2,171,1,160.3857,0.04322 },
{ 2,172,1,160.5643,0.04314 },
{ 2,173,1,160.7332,0.04307 },
{ 2,174,1,160.8927,0.04299 },
{ 2,175,1,161.043,0.04292 },
{ 2,176,1,161.1845,0.04284 },
{ 2,177,1,161.3176,0.04277 },
{ 2,178,1,161.4425,0.0427 },
{ 2,179,1,161.5596,0.04263 },
{ 2,180,1,161.6692,0.04255 },
{ 2,181,1,161.7717,0.04248 },
{ 2,182,1,161.8673,0.04241 },
{ 2,183,1,161.9564,0.04235 },
{ 2,184,1,162.0393,0.04228 },
{ 2,185,1,162.1164,0.04221 },
{ 2,186,1,162.188,0.04214 },
{ 2,187,1,162.2542,0.04208 },
{ 2,188,1,162.3154,0.04201 },
{ 2,189,1,162.3719,0.04195 },
{ 2,190,1,162.4239,0.04189 },
{ 2,191,1,162.4717,0.04182 },
{ 2,192,1,162.5156,0.04176 },
{ 2,193,1,162.556,0.0417 },
{ 2,194,1,162.5933,0.04164 },
{ 2,195,1,162.6276,0.04158 },
{ 2,196,1,162.6594,0.04152 },
{ 2,197,1,162.689,0.04147 },
{ 2,198,1,162.7165,0.04141 },
{ 2,199,1,162.7425,0.04136 },
{ 2,200,1,162.767,0.0413 },
{ 2,201,1,162.7904,0.04125 },
{ 2,202,1,162.8126,0.04119 },
{ 2,203,1,162.834,0.04114 },
{ 2,204,1,162.8545,0.04109 },
{ 2,205,1,162.8743,0.04104 },
{ 2,206,1,162.8935,0.04099 },
{ 2,207,1,162.912,0.04094 },
{ 2,208,1,162.93,0.04089 },
{ 2,209,1,162.9476,0.04084 },
{ 2,210,1,162.9649,0.0408 },
{ 2,211,1,162.9817,0.04075 },
{ 2,212,1,162.9983,0.04071 },
{ 2,213,1,163.0144,0.04066 },
{ 2,214,1,163.03,0.04062 },
{ 2,215,1,163.0451,0.04058 },
{ 2,216,1,163.0595,0.04053 },
{ 2,217,1,163.0733,0.04049 },
{ 2,218,1,163.0862,0.04045 },
{ 2,219,1,163.0982,0.04041 },
{ 2,220,1,163.1092,0.04037 },
{ 2,221,1,163.1192,0.04034 },
{ 2,222,1,163.1279,0.0403 },
{ 2,223,1,163.1355,0.04026 },
{ 2,224,1,163.1418,0.04023 },
{ 2,225,1,163.1469,0.04019 },
{ 2,226,1,163.1508,0.04016 },
{ 2,227,1,163.1534,0.04012 },
{ 2,228,1,163.1548,0.04009 }
                                              };
        private static double[,] WHO2007WtAge = {
{ 1,0,0.3487,3.3464,0.14602 },
{ 1,1,0.2297,4.4709,0.13395 },
{ 1,2,0.197,5.5675,0.12385 },
{ 1,3,0.1738,6.3762,0.11727 },
{ 1,4,0.1553,7.0023,0.11316 },
{ 1,5,0.1395,7.5105,0.1108 },
{ 1,6,0.1257,7.934,0.10958 },
{ 1,7,0.1134,8.297,0.10902 },
{ 1,8,0.1021,8.6151,0.10882 },
{ 1,9,0.0917,8.9014,0.10881 },
{ 1,10,0.082,9.1649,0.10891 },
{ 1,11,0.073,9.4122,0.10906 },
{ 1,12,0.0644,9.6479,0.10925 },
{ 1,13,0.0563,9.8749,0.10949 },
{ 1,14,0.0487,10.0953,0.10976 },
{ 1,15,0.0413,10.3108,0.11007 },
{ 1,16,0.0343,10.5228,0.11041 },
{ 1,17,0.0275,10.7319,0.11079 },
{ 1,18,0.0211,10.9385,0.11119 },
{ 1,19,0.0148,11.143,0.11164 },
{ 1,20,0.0087,11.3462,0.11211 },
{ 1,21,0.0029,11.5486,0.11261 },
{ 1,22,-0.0028,11.7504,0.11314 },
{ 1,23,-0.0083,11.9514,0.11369 },
{ 1,24,-0.0137,12.1515,0.11426 },
{ 1,25,-0.0189,12.3502,0.11485 },
{ 1,26,-0.024,12.5466,0.11544 },
{ 1,27,-0.0289,12.7401,0.11604 },
{ 1,28,-0.0337,12.9303,0.11664 },
{ 1,29,-0.0385,13.1169,0.11723 },
{ 1,30,-0.0431,13.3,0.11781 },
{ 1,31,-0.0476,13.4798,0.11839 },
{ 1,32,-0.052,13.6567,0.11896 },
{ 1,33,-0.0564,13.8309,0.11953 },
{ 1,34,-0.0606,14.0031,0.12008 },
{ 1,35,-0.0648,14.1736,0.12062 },
{ 1,36,-0.0689,14.3429,0.12116 },
{ 1,37,-0.0729,14.5113,0.12168 },
{ 1,38,-0.0769,14.6791,0.1222 },
{ 1,39,-0.0808,14.8466,0.12271 },
{ 1,40,-0.0846,15.014,0.12322 },
{ 1,41,-0.0883,15.1813,0.12373 },
{ 1,42,-0.092,15.3486,0.12425 },
{ 1,43,-0.0957,15.5158,0.12478 },
{ 1,44,-0.0993,15.6828,0.12531 },
{ 1,45,-0.1028,15.8497,0.12586 },
{ 1,46,-0.1063,16.0163,0.12643 },
{ 1,47,-0.1097,16.1827,0.127 },
{ 1,48,-0.1131,16.3489,0.12759 },
{ 1,49,-0.1165,16.515,0.12819 },
{ 1,50,-0.1198,16.6811,0.1288 },
{ 1,51,-0.123,16.8471,0.12943 },
{ 1,52,-0.1262,17.0132,0.13005 },
{ 1,53,-0.1294,17.1792,0.13069 },
{ 1,54,-0.1325,17.3452,0.13133 },
{ 1,55,-0.1356,17.5111,0.13197 },
{ 1,56,-0.1387,17.6768,0.13261 },
{ 1,57,-0.1417,17.8422,0.13325 },
{ 1,58,-0.1447,18.0073,0.13389 },
{ 1,59,-0.1477,18.1722,0.13453 },
{ 1,60,-0.1506,18.3366,0.13517 },
{ 1,61,-0.2026,18.5057,0.12988 },
{ 1,62,-0.213,18.6802,0.13028 },
{ 1,63,-0.2234,18.8563,0.13067 },
{ 1,64,-0.2338,19.034,0.13105 },
{ 1,65,-0.2443,19.2132,0.13142 },
{ 1,66,-0.2548,19.394,0.13178 },
{ 1,67,-0.2653,19.5765,0.13213 },
{ 1,68,-0.2758,19.7607,0.13246 },
{ 1,69,-0.2864,19.9468,0.13279 },
{ 1,70,-0.2969,20.1344,0.13311 },
{ 1,71,-0.3075,20.3235,0.13342 },
{ 1,72,-0.318,20.5137,0.13372 },
{ 1,73,-0.3285,20.7052,0.13402 },
{ 1,74,-0.339,20.8979,0.13432 },
{ 1,75,-0.3494,21.0918,0.13462 },
{ 1,76,-0.3598,21.287,0.13493 },
{ 1,77,-0.3701,21.4833,0.13523 },
{ 1,78,-0.3804,21.681,0.13554 },
{ 1,79,-0.3906,21.8799,0.13586 },
{ 1,80,-0.4007,22.08,0.13618 },
{ 1,81,-0.4107,22.2813,0.13652 },
{ 1,82,-0.4207,22.4837,0.13686 },
{ 1,83,-0.4305,22.6872,0.13722 },
{ 1,84,-0.4402,22.8915,0.13759 },
{ 1,85,-0.4499,23.0968,0.13797 },
{ 1,86,-0.4594,23.3029,0.13838 },
{ 1,87,-0.4688,23.5101,0.1388 },
{ 1,88,-0.4781,23.7182,0.13923 },
{ 1,89,-0.4873,23.9272,0.13969 },
{ 1,90,-0.4964,24.1371,0.14016 },
{ 1,91,-0.5053,24.3479,0.14065 },
{ 1,92,-0.5142,24.5595,0.14117 },
{ 1,93,-0.5229,24.7722,0.1417 },
{ 1,94,-0.5315,24.9858,0.14226 },
{ 1,95,-0.5399,25.2005,0.14284 },
{ 1,96,-0.5482,25.4163,0.14344 },
{ 1,97,-0.5564,25.6332,0.14407 },
{ 1,98,-0.5644,25.8513,0.14472 },
{ 1,99,-0.5722,26.0706,0.14539 },
{ 1,100,-0.5799,26.2911,0.14608 },
{ 1,101,-0.5873,26.5128,0.14679 },
{ 1,102,-0.5946,26.7358,0.14752 },
{ 1,103,-0.6017,26.9602,0.14828 },
{ 1,104,-0.6085,27.1861,0.14905 },
{ 1,105,-0.6152,27.4137,0.14984 },
{ 1,106,-0.6216,27.6432,0.15066 },
{ 1,107,-0.6278,27.875,0.15149 },
{ 1,108,-0.6337,28.1092,0.15233 },
{ 1,109,-0.6393,28.3459,0.15319 },
{ 1,110,-0.6446,28.5854,0.15406 },
{ 1,111,-0.6496,28.8277,0.15493 },
{ 1,112,-0.6543,29.0731,0.15581 },
{ 1,113,-0.6585,29.3217,0.1567 },
{ 1,114,-0.6624,29.5736,0.1576 },
{ 1,115,-0.6659,29.8289,0.1585 },
{ 1,116,-0.6689,30.0877,0.1594 },
{ 1,117,-0.6714,30.3501,0.16031 },
{ 1,118,-0.6735,30.616,0.16122 },
{ 1,119,-0.6752,30.8854,0.16213 },
{ 1,120,-0.6764,31.1586,0.16305 },
{ 2,0,0.3809,3.2322,0.14171 },
{ 2,1,0.1714,4.1873,0.13724 },
{ 2,2,0.0962,5.1282,0.13 },
{ 2,3,0.0402,5.8458,0.12619 },
{ 2,4,-0.005,6.4237,0.12402 },
{ 2,5,-0.043,6.8985,0.12274 },
{ 2,6,-0.0756,7.297,0.12204 },
{ 2,7,-0.1039,7.6422,0.12178 },
{ 2,8,-0.1288,7.9487,0.12181 },
{ 2,9,-0.1507,8.2254,0.12199 },
{ 2,10,-0.17,8.48,0.12223 },
{ 2,11,-0.1872,8.7192,0.12247 },
{ 2,12,-0.2024,8.9481,0.12268 },
{ 2,13,-0.2158,9.1699,0.12283 },
{ 2,14,-0.2278,9.387,0.12294 },
{ 2,15,-0.2384,9.6008,0.12299 },
{ 2,16,-0.2478,9.8124,0.12303 },
{ 2,17,-0.2562,10.0226,0.12306 },
{ 2,18,-0.2637,10.2315,0.12309 },
{ 2,19,-0.2703,10.4393,0.12315 },
{ 2,20,-0.2762,10.6464,0.12323 },
{ 2,21,-0.2815,10.8534,0.12335 },
{ 2,22,-0.2862,11.0608,0.1235 },
{ 2,23,-0.2903,11.2688,0.12369 },
{ 2,24,-0.2941,11.4775,0.1239 },
{ 2,25,-0.2975,11.6864,0.12414 },
{ 2,26,-0.3005,11.8947,0.12441 },
{ 2,27,-0.3032,12.1015,0.12472 },
{ 2,28,-0.3057,12.3059,0.12506 },
{ 2,29,-0.308,12.5073,0.12545 },
{ 2,30,-0.3101,12.7055,0.12587 },
{ 2,31,-0.312,12.9006,0.12633 },
{ 2,32,-0.3138,13.093,0.12683 },
{ 2,33,-0.3155,13.2837,0.12737 },
{ 2,34,-0.3171,13.4731,0.12794 },
{ 2,35,-0.3186,13.6618,0.12855 },
{ 2,36,-0.3201,13.8503,0.12919 },
{ 2,37,-0.3216,14.0385,0.12988 },
{ 2,38,-0.323,14.2265,0.13059 },
{ 2,39,-0.3243,14.414,0.13135 },
{ 2,40,-0.3257,14.601,0.13213 },
{ 2,41,-0.327,14.7873,0.13293 },
{ 2,42,-0.3283,14.9727,0.13376 },
{ 2,43,-0.3296,15.1573,0.1346 },
{ 2,44,-0.3309,15.341,0.13545 },
{ 2,45,-0.3322,15.524,0.1363 },
{ 2,46,-0.3335,15.7064,0.13716 },
{ 2,47,-0.3348,15.8882,0.138 },
{ 2,48,-0.3361,16.0697,0.13884 },
{ 2,49,-0.3374,16.2511,0.13968 },
{ 2,50,-0.3387,16.4322,0.14051 },
{ 2,51,-0.34,16.6133,0.14132 },
{ 2,52,-0.3414,16.7942,0.14213 },
{ 2,53,-0.3427,16.9748,0.14293 },
{ 2,54,-0.344,17.1551,0.14371 },
{ 2,55,-0.3453,17.3347,0.14448 },
{ 2,56,-0.3466,17.5136,0.14525 },
{ 2,57,-0.3479,17.6916,0.146 },
{ 2,58,-0.3492,17.8686,0.14675 },
{ 2,59,-0.3505,18.0445,0.14748 },
{ 2,60,-0.3518,18.2193,0.14821 },
{ 2,61,-0.4681,18.2579,0.14295 },
{ 2,62,-0.4711,18.4329,0.1435 },
{ 2,63,-0.4742,18.6073,0.14404 },
{ 2,64,-0.4773,18.7811,0.14459 },
{ 2,65,-0.4803,18.9545,0.14514 },
{ 2,66,-0.4834,19.1276,0.14569 },
{ 2,67,-0.4864,19.3004,0.14624 },
{ 2,68,-0.4894,19.473,0.14679 },
{ 2,69,-0.4924,19.6455,0.14735 },
{ 2,70,-0.4954,19.818,0.1479 },
{ 2,71,-0.4984,19.9908,0.14845 },
{ 2,72,-0.5013,20.1639,0.149 },
{ 2,73,-0.5043,20.3377,0.14955 },
{ 2,74,-0.5072,20.5124,0.1501 },
{ 2,75,-0.51,20.6885,0.15065 },
{ 2,76,-0.5129,20.8661,0.1512 },
{ 2,77,-0.5157,21.0457,0.15175 },
{ 2,78,-0.5185,21.2274,0.1523 },
{ 2,79,-0.5213,21.4113,0.15284 },
{ 2,80,-0.524,21.5979,0.15339 },
{ 2,81,-0.5268,21.7872,0.15393 },
{ 2,82,-0.5294,21.9795,0.15448 },
{ 2,83,-0.5321,22.1751,0.15502 },
{ 2,84,-0.5347,22.374,0.15556 },
{ 2,85,-0.5372,22.5762,0.1561 },
{ 2,86,-0.5398,22.7816,0.15663 },
{ 2,87,-0.5423,22.9904,0.15717 },
{ 2,88,-0.5447,23.2025,0.1577 },
{ 2,89,-0.5471,23.418,0.15823 },
{ 2,90,-0.5495,23.6369,0.15876 },
{ 2,91,-0.5518,23.8593,0.15928 },
{ 2,92,-0.5541,24.0853,0.1598 },
{ 2,93,-0.5563,24.3149,0.16032 },
{ 2,94,-0.5585,24.5482,0.16084 },
{ 2,95,-0.5606,24.7853,0.16135 },
{ 2,96,-0.5627,25.0262,0.16186 },
{ 2,97,-0.5647,25.271,0.16237 },
{ 2,98,-0.5667,25.5197,0.16287 },
{ 2,99,-0.5686,25.7721,0.16337 },
{ 2,100,-0.5704,26.0284,0.16386 },
{ 2,101,-0.5722,26.2883,0.16435 },
{ 2,102,-0.574,26.5519,0.16483 },
{ 2,103,-0.5757,26.819,0.16532 },
{ 2,104,-0.5773,27.0896,0.16579 },
{ 2,105,-0.5789,27.3635,0.16626 },
{ 2,106,-0.5804,27.6406,0.16673 },
{ 2,107,-0.5819,27.9208,0.16719 },
{ 2,108,-0.5833,28.204,0.16764 },
{ 2,109,-0.5847,28.4901,0.16809 },
{ 2,110,-0.5859,28.7791,0.16854 },
{ 2,111,-0.5872,29.0711,0.16897 },
{ 2,112,-0.5883,29.3663,0.16941 },
{ 2,113,-0.5895,29.6646,0.16983 },
{ 2,114,-0.5905,29.9663,0.17025 },
{ 2,115,-0.5915,30.2715,0.17066 },
{ 2,116,-0.5925,30.5805,0.17107 },
{ 2,117,-0.5934,30.8934,0.17146 },
{ 2,118,-0.5942,31.2105,0.17186 },
{ 2,119,-0.595,31.5319,0.17224 },
{ 2,120,-0.5958,31.8578,0.17262 }
                                              };
        #endregion WHO 2007 Reference Data

        public static double GetZ_CDC2000_BMI(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCBMI.Length / 5; i++)
            {
                if (CDCBMI[i, 0] == gender && CDCBMI[i, 1] == ageMonths)
                {
                    L = CDCBMI[i, 2];
                    M = CDCBMI[i, 3];
                    S = CDCBMI[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 0, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetCDCBMIZ()

        public static double GetZ_CDC2000_Head(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCHead.Length / 5; i++)
            {
                if (CDCHead[i, 0] == gender && CDCHead[i, 1] == ageMonths)
                {
                    L = CDCHead[i, 2];
                    M = CDCHead[i, 3];
                    S = CDCHead[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 1, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetCDCHeadZ()

        public static double GetZ_CDC2000_HtAge(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCHtAge.Length / 5; i++)
            {
                if (CDCHtAge[i, 0] == gender && CDCHtAge[i, 1] == ageMonths)
                {
                    L = CDCHtAge[i, 2];
                    M = CDCHtAge[i, 3];
                    S = CDCHtAge[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 2, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetZ_CDC2000_HtAge()

        public static double GetZ_CDC2000_LgthAge(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCLgthAge.Length / 5; i++)
            {
                if (CDCLgthAge[i, 0] == gender && CDCLgthAge[i, 1] == ageMonths)
                {
                    L = CDCLgthAge[i, 2];
                    M = CDCLgthAge[i, 3];
                    S = CDCLgthAge[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 3, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetZ_CDC2000_LgthAge()

        public static double GetZ_CDC2000_WtAge(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCWtAge.Length / 5; i++)
            {
                if (CDCWtAge[i, 0] == gender && CDCWtAge[i, 1] == ageMonths)
                {
                    L = CDCWtAge[i, 2];
                    M = CDCWtAge[i, 3];
                    S = CDCWtAge[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 4, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetZ_CDC2000_WtAge()

        public static double GetZ_CDC2000_WtHt(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCWtHt.Length / 5; i++)
            {
                if (CDCWtHt[i, 0] == gender && CDCWtHt[i, 1] == ageMonths)
                {
                    L = CDCWtHt[i, 2];
                    M = CDCWtHt[i, 3];
                    S = CDCWtHt[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 5, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetZ_CDC2000_WtHt()

        public static double GetZ_CDC2000_WtLgth(double rawScore, double ageMonths, short gender, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            bool foundValue = false;

            for (int i = 0; i < CDCWtLgth.Length / 5; i++)
            {
                if (CDCWtLgth[i, 0] == gender && CDCWtLgth[i, 1] == ageMonths)
                {
                    L = CDCWtLgth[i, 2];
                    M = CDCWtLgth[i, 3];
                    S = CDCWtLgth[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
                Z = InterpCDCZ(rawScore, ageMonths, gender, 6, ref flag);
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }
            return Z;
        } // end GetZ_CDC2000_WtLgth()

        private static double InterpCDCZ(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double L_u = -1;
            double M_u = -1;
            double S_u = -1;
            double L_l = -1;
            double M_l = -1;
            double S_l = -1;
            double Z = 1;
            double upper = 0;
            double lower = 0;
            double difference = 0;
            double wholeMonths = Math.Truncate(ageMonths);
            difference = ageMonths - wholeMonths;

            if (difference < 0.5)
                lower = wholeMonths - 0.5;
            else
                lower = wholeMonths + 0.5;

            upper = lower + 1.0;

            if (lower <= 0)
                lower = 0.0;

            double[,] reference;// = new double();

            switch (measurementType)
            {
                case 0:
                    reference = CDCBMI;
                    break;
                case 1:
                    reference = CDCHead;
                    break;
                case 2:
                    reference = CDCHtAge;
                    break;
                case 3:
                    reference = CDCLgthAge;
                    break;
                case 4:
                    reference = CDCWtAge;
                    break;
                case 5:
                    reference = CDCWtHt;
                    break;
                case 6:
                    reference = CDCWtLgth;
                    break;
                default:
                    reference = CDCBMI;
                    break;
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == lower)
                {
                    L_l = reference[i, 2];
                    M_l = reference[i, 3];
                    S_l = reference[i, 4];
                    break;
                }
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == upper)
                {
                    L_u = reference[i, 2];
                    M_u = reference[i, 3];
                    S_u = reference[i, 4];
                    break;
                }
            }

            double percent = (ageMonths - lower);
            double percent_u = (upper - ageMonths);

            if (lower <= 0)
            {
                percent = percent * 2;
                percent_u = percent_u * 2;
            }

            L = (L_u * percent) + (L_l * percent_u);
            M = (M_u * percent) + (M_l * percent_u);
            S = (S_u * percent) + (S_l * percent_u);

            // Now that we're done, we simply do the stat math to get the Z-score just like we did in GetZScore().
            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            // Do the flag calculations            
            double stddev = 0;
            if (rawScore < M)
                stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
            else
                stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

            flag = (rawScore - M) / stddev;

            return Z;
        } // end InterpCDCZ  

        /// <summary>
        /// n/a
        /// </summary>        
        /// <returns>double (z-score)</returns>        
        public static double GetZScoreNCHS(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            flag = 0;

            double[,] reference;

            switch (measurementType)
            {
                case 2:
                    reference = WHO1978HtAge;
                    break;
                case 3:
                    reference = WHO1978LgthAge;
                    break;
                case 4:
                    reference = WHO1978WtAge;
                    break;
                case 5:
                    reference = WHO1978WtHt;
                    break;
                case 6:
                    reference = WHO1978WtLgth;
                    break;
                default:
                    reference = WHO1978HtAge;
                    break;
            }

            // Create a variable to controls whether or not we found a lookup value. 
            bool foundValue = false;

            // Std dev above the mean (50 - 100) and below the mean (0 - 50)
            double stdDevU = 1;
            double stdDevL = 1;
            double mean = -999;
            double Z = 0;

            for (int i = 0; i < reference.Length / 9; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == ageMonths)
                {
                    double C5 = reference[i, 2];
                    double C10 = reference[i, 3];
                    double C25 = reference[i, 4];
                    double C50 = reference[i, 5];
                    double C75 = reference[i, 6];
                    double C90 = reference[i, 7];
                    double C95 = reference[i, 8];

                    double sumL = 0;
                    double sumU = 0;

                    // We average three distances to get the standard deviation: 5 to 50, 10 to 50, and 25 to 50.
                    // 5 - 50:
                    stdDevL = (C50 - C5) / 1.65;
                    stdDevU = (C95 - C50) / 1.65;
                    sumL = sumL + stdDevL;
                    sumU = sumU + stdDevU;
                    // 10 - 50:
                    stdDevL = (C50 - C10) / 1.28;
                    stdDevU = (C90 - C50) / 1.28;
                    sumL = sumL + stdDevL;
                    sumU = sumU + stdDevU;
                    // 25 - 50:
                    stdDevL = (C50 - C25) / 0.67;
                    stdDevU = (C75 - C50) / 0.67;
                    sumL = sumL + stdDevL;
                    sumU = sumU + stdDevU;

                    stdDevL = sumL / 3;
                    stdDevU = sumU / 3;

                    mean = C50;
                    foundValue = true;
                    break;
                }
            }

            // Do the math to get a z-score. This is based off the standard z-score formula of
            // z = (x - mean) / std dev. See http://www.fda.gov/ohrms/dockets/ac/02/briefing/3903b1-04.pdf

            // if the score is higher than the mean, use the upper std dev
            if (rawScore > mean)
                Z = (rawScore - mean) / stdDevU;
            else if (rawScore < mean)
                Z = (rawScore - mean) / stdDevL;
            else
                Z = 0;

            // If we did NOT find a value in the lookup table, we need to interpolate. We call another function for this,
            // which handles the interpolation. (I suspect this could be done more efficiently.)
            if (!foundValue)
            {
                Z = InterpZNCHS(rawScore, ageMonths, gender, measurementType, ref flag);
            }
            else
            {
                //flag = (rawScore - M) / stddev;
            }

            // return the Z score back to the calling function           
            return Z;

        } // end GetZScoreNCHS()

        /// <summary>
        /// Interpolate z-score
        /// </summary>        
        /// <returns>double (z-score)</returns>     
        private static double InterpZNCHS(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double stdDevU = 1;
            double stdDevL = 1;
            double mean = -999;

            double stdDevU_u = 1;
            double stdDevU_l = 1;

            double stdDevL_u = 1;
            double stdDevL_l = 1;

            double mean_u = -999;
            double mean_l = -999;

            double[,] reference;

            switch (measurementType)
            {
                case 2:
                    reference = WHO1978HtAge;
                    break;
                case 3:
                    reference = WHO1978LgthAge;
                    break;
                case 4:
                    reference = WHO1978WtAge;
                    break;
                case 5:
                    reference = WHO1978WtHt;
                    break;
                case 6:
                    reference = WHO1978WtLgth;
                    break;
                default:
                    reference = WHO1978HtAge;
                    break;
            }

            // Set a default value for z-score.
            double Z = 1;

            // These are the upper/lower values for AgeMos, or if using WtHeight / WtLength, then for
            // HeightCm and LengthCm, respectively.
            double upper = 0;
            double lower = 0;
            double difference = 0;
            double wholeMonths = Math.Truncate(ageMonths);
            difference = ageMonths - wholeMonths;

            lower = wholeMonths;
            upper = lower + 1.0;

            for (int i = 0; i < reference.Length / 9; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == lower)
                {
                    double C5 = reference[i, 2];
                    double C10 = reference[i, 3];
                    double C25 = reference[i, 4];
                    double C50 = reference[i, 5];
                    double C75 = reference[i, 6];
                    double C90 = reference[i, 7];
                    double C95 = reference[i, 8];

                    double sumL = 0;
                    double sumU = 0;

                    // 5 - 50:
                    stdDevL_l = (C50 - C5) / 1.65;
                    stdDevU_l = (C95 - C50) / 1.65;
                    sumL = sumL + stdDevL_l;
                    sumU = sumU + stdDevU_l;
                    // 10 - 50:
                    stdDevL_l = (C50 - C10) / 1.28;
                    stdDevU_l = (C90 - C50) / 1.28;
                    sumL = sumL + stdDevL_l;
                    sumU = sumU + stdDevU_l;
                    // 25 - 50:
                    stdDevL_l = (C50 - C25) / 0.67;
                    stdDevU_l = (C75 - C50) / 0.67;
                    sumL = sumL + stdDevL_l;
                    sumU = sumU + stdDevU_l;

                    stdDevL_l = sumL / 3;
                    stdDevU_l = sumU / 3;

                    mean_l = C50;
                    break;
                }
            }

            for (int i = 0; i < reference.Length / 9; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == upper)
                {
                    double C5 = reference[i, 2];
                    double C10 = reference[i, 3];
                    double C25 = reference[i, 4];
                    double C50 = reference[i, 5];
                    double C75 = reference[i, 6];
                    double C90 = reference[i, 7];
                    double C95 = reference[i, 8];

                    double sumL = 0;
                    double sumU = 0;

                    stdDevL_u = (C50 - C5) / 1.65;
                    stdDevU_u = (C95 - C50) / 1.65;
                    sumL = sumL + stdDevL_u;
                    sumU = sumU + stdDevU_u;
                    // 10 - 50:
                    stdDevL_u = (C50 - C10) / 1.28;
                    stdDevU_u = (C90 - C50) / 1.28;
                    sumL = sumL + stdDevL_u;
                    sumU = sumU + stdDevU_u;
                    // 25 - 50:
                    stdDevL_u = (C50 - C25) / 0.67;
                    stdDevU_u = (C75 - C50) / 0.67;
                    sumL = sumL + stdDevL_u;
                    sumU = sumU + stdDevU_u;

                    stdDevL_u = sumL / 3;
                    stdDevU_u = sumU / 3;

                    mean_u = C50;
                    break;
                }
            }

            double percent = (ageMonths - lower);
            double percent_u = (upper - ageMonths);

            stdDevU = (stdDevU_u * percent) + (stdDevU_l * percent_u);
            stdDevL = (stdDevL_u * percent) + (stdDevL_l * percent_u);
            mean = (mean_u * percent) + (mean_l * percent_u);

            // if the score is higher than the mean, use the upper std dev
            if (rawScore > mean)
                Z = (rawScore - mean) / stdDevU;
            else if (rawScore < mean)
                Z = (rawScore - mean) / stdDevL;
            else
                Z = 0;

            // Return the z-score to the calling function.
            return Z;

        } // end InterpZNCHS

        public static double GetZ_WHO2006(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            double[] ZLMS = new double[4];
            bool foundValue = false;

            double[,] reference;

            switch (measurementType)
            {
                case 0:
                    reference = WHO2006BMI;
                    break;
                case 1:
                    reference = WHO2006Head;
                    break;
                case 2:
                    reference = WHO2006HtAge;
                    break;
                case 3:
                    reference = WHO2006LgthAge;
                    break;
                case 4:
                    reference = WHO2006WtAge;
                    break;
                case 5:
                    reference = WHO2006WtHt;
                    break;
                case 6:
                    reference = WHO2006WtLgth;
                    break;
                case 7:
                    reference = WHO2006SSF;
                    break;
                case 8:
                    reference = WHO2006TSF;
                    break;
                default:
                    reference = WHO2006HtAge;
                    break;
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == ageMonths)
                {
                    L = reference[i, 2];
                    M = reference[i, 3];
                    S = reference[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
            {
                ZLMS = InterpZWHO2006(rawScore, ageMonths, gender, measurementType, ref flag);
                Z = ZLMS[0];
                L = ZLMS[1];
                M = ZLMS[2];
                S = ZLMS[3];
            }
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }

            // Re-calculates Z if the LMS z-score is above 3 or below -3, as per http://www.who.int/childgrowth/standards/Chap_7.pdf
            if (Z > 3)
            {
                double SD3pos = 0;
                double SD2pos = 0;
                double SD23pos = 0;

                SD3pos = M * Math.Pow((1 + L * S * 3), 1 / L);
                SD2pos = M * Math.Pow((1 + L * S * 2), 1 / L);
                SD23pos = SD3pos - SD2pos;

                Z = 3 + ((rawScore - SD3pos) / SD23pos);
            }
            else if (Z < -3)
            {
                double SD3neg = 0;
                double SD2neg = 0;
                double SD23neg = 0;

                SD3neg = M * Math.Pow((1 + L * S * (-3)), 1 / L);
                SD2neg = M * Math.Pow((1 + L * S * (-2)), 1 / L);
                SD23neg = SD2neg - SD3neg;

                Z = (-3) + ((rawScore - SD3neg) / SD23neg);
            }

            return Z;
        } // end GetZ_WHO2006()

        private static double[] InterpZWHO2006(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double L_u = -1;
            double M_u = -1;
            double S_u = -1;
            double L_l = -1;
            double M_l = -1;
            double S_l = -1;
            double Z = 1;
            double upper = 0;
            double lower = 0;
            double difference = 0;
            double wholeMonths = Math.Truncate(ageMonths);
            difference = ageMonths - wholeMonths;

            double[,] reference;

            switch (measurementType)
            {
                case 0:
                    reference = WHO2006BMI;
                    break;
                case 1:
                    reference = WHO2006Head;
                    break;
                case 2:
                    reference = WHO2006HtAge;
                    break;
                case 3:
                    reference = WHO2006LgthAge;
                    break;
                case 4:
                    reference = WHO2006WtAge;
                    break;
                case 5:
                    reference = WHO2006WtHt;
                    break;
                case 6:
                    reference = WHO2006WtLgth;
                    break;
                case 7:
                    reference = WHO2006SSF;
                    break;
                case 8:
                    reference = WHO2006TSF;
                    break;
                default:
                    reference = WHO2006HtAge;
                    break;
            }

            if (measurementType != 5 && measurementType != 6)
            {
                lower = wholeMonths;
                upper = lower + 1.0;
            }
            else
            {
                if (difference > 0.5)
                {
                    lower = wholeMonths + 0.5;
                }
                else
                {
                    lower = wholeMonths;
                }
                upper = lower + 0.5;
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == lower)
                {
                    L_l = reference[i, 2];
                    M_l = reference[i, 3];
                    S_l = reference[i, 4];
                    break;
                }
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == upper)
                {
                    L_u = reference[i, 2];
                    M_u = reference[i, 3];
                    S_u = reference[i, 4];
                    break;
                }
            }
            double percent = (ageMonths - lower);
            double percent_u = (upper - ageMonths);

            if (measurementType == 5 || measurementType == 6)
            {
                percent = percent * 2;
                percent_u = percent_u * 2;
            }

            L = (L_u * percent) + (L_l * percent_u);
            M = (M_u * percent) + (M_l * percent_u);
            S = (S_u * percent) + (S_l * percent_u);

            // Now that we're done, we simply do the stat math to get the Z-score just like we did in GetZScore().
            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            // Do the flag calculations            
            double stddev = 0;
            if (rawScore < M)
            {
                stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
            }
            else
            {
                stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;
            }

            flag = (rawScore - M) / stddev;

            // Return the z-score to the calling function.
            double[] ZLMS = {Z, L, M, S};
            return ZLMS;

        } // end InterpZWHO2006

        public static double GetZ_WHO2007(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double Z = 1;
            double[] ZLMS = new double[4];
            bool foundValue = false;

            double[,] reference;

            switch (measurementType)
            {
                case 0:
                    reference = WHO2007BMI;
                    break;
                case 2:
                    reference = WHO2007HtAge;
                    break;
                case 4:
                    reference = WHO2007WtAge;
                    break;
                default:
                    reference = WHO2007HtAge;
                    break;
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == ageMonths)
                {
                    L = reference[i, 2];
                    M = reference[i, 3];
                    S = reference[i, 4];
                    foundValue = true;
                    break;
                }
            }

            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            if (!foundValue)
            {
                ZLMS = InterpZWHO2007(rawScore, ageMonths, gender, measurementType, ref flag);
                Z = ZLMS[0];
                L = ZLMS[1];
                M = ZLMS[2];
                S = ZLMS[3];
            }
            else
            {
                double stddev = 0;
                if (rawScore < M)
                    stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
                else
                    stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;

                flag = (rawScore - M) / stddev;
            }

            // Re-calculates Z if the LMS z-score is above 3 or below -3, as per http://www.who.int/childgrowth/standards/Chap_7.pdf
            if (Z > 3)
            {
                double SD3pos = 0;
                double SD2pos = 0;
                double SD23pos = 0;

                SD3pos = M * Math.Pow((1 + L * S * 3), 1 / L);
                SD2pos = M * Math.Pow((1 + L * S * 2), 1 / L);
                SD23pos = SD3pos - SD2pos;

                Z = 3 + ((rawScore - SD3pos) / SD23pos);
            }
            else if (Z < -3)
            {
                double SD3neg = 0;
                double SD2neg = 0;
                double SD23neg = 0;

                SD3neg = M * Math.Pow((1 + L * S * (-3)), 1 / L);
                SD2neg = M * Math.Pow((1 + L * S * (-2)), 1 / L);
                SD23neg = SD2neg - SD3neg;

                Z = (-3) + ((rawScore - SD3neg) / SD23neg);
            }

            return Z;
        } // end GetZ_WHO2007()

        private static double[] InterpZWHO2007(double rawScore, double ageMonths, short gender, short measurementType, ref double flag)
        {
            double L = -1;
            double M = -1;
            double S = -1;
            double L_u = -1;
            double M_u = -1;
            double S_u = -1;
            double L_l = -1;
            double M_l = -1;
            double S_l = -1;
            double Z = 1;
            double upper = 0;
            double lower = 0;
            double difference = 0;
            double wholeMonths = Math.Truncate(ageMonths);
            difference = ageMonths - wholeMonths;

            double[,] reference;

            switch (measurementType)
            {
                case 0:
                    reference = WHO2007BMI;
                    break;
                case 2:
                    reference = WHO2007HtAge;
                    break;
                case 4:
                    reference = WHO2007WtAge;
                    break;
                default:
                    reference = WHO2007HtAge;
                    break;
            }

            if (measurementType != 5 && measurementType != 6)
            {
                lower = wholeMonths;
                upper = lower + 1.0;
            }
            else
            {
                if (difference > 0.5)
                {
                    lower = wholeMonths + 0.5;
                }
                else
                {
                    lower = wholeMonths;
                }
                upper = lower + 0.5;
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == lower)
                {
                    L_l = reference[i, 2];
                    M_l = reference[i, 3];
                    S_l = reference[i, 4];
                    break;
                }
            }

            for (int i = 0; i < reference.Length / 5; i++)
            {
                if (reference[i, 0] == gender && reference[i, 1] == upper)
                {
                    L_u = reference[i, 2];
                    M_u = reference[i, 3];
                    S_u = reference[i, 4];
                    break;
                }
            }
            double percent = (ageMonths - lower);
            double percent_u = (upper - ageMonths);

            if (measurementType == 5 || measurementType == 6)
            {
                percent = percent * 2;
                percent_u = percent_u * 2;
            }

            L = (L_u * percent) + (L_l * percent_u);
            M = (M_u * percent) + (M_l * percent_u);
            S = (S_u * percent) + (S_l * percent_u);

            // Now that we're done, we simply do the stat math to get the Z-score just like we did in GetZScore().
            Z = (rawScore / M);
            Z = Math.Pow(Z, L);
            Z = Z - 1;
            Z = Z / (L * S);

            // Do the flag calculations            
            double stddev = 0;
            if (rawScore < M)
            {
                stddev = M * (1 - Math.Pow((1 - 2 * L * S), (1 / L))) / 2;
            }
            else
            {
                stddev = M * (Math.Pow((1 + (2 * L * S)), (1 / L)) - 1) / 2;
            }

            flag = (rawScore - M) / stddev;

            // Return the z-score to the calling function.
            double[] ZLMS = { Z, L, M, S };
            return ZLMS;

        } // end InterpZWHO2007
    }
}




